Jquery自适应的地址选择框,省市县选择,一个页面多次调用
XML/HTML Code
- <div class="ui-form-item ui-border-b">
- <label>单位地址</label>
- <div class="ui-select">
- <input id="expressArea" data-name="custUa" data-required="true" data-label="单位地址" placeholder="选择省市区" readonly style="padding-left:0;">
- </div>
- <div class="browser">
- <!--选择地区弹层-->
- <section id="areaLayer" class="express-area-box">
- <header>
- <h3>选择省市区</h3>
- <div class="selet-area-wrap">
- <p><span class="one"></span></p>
- <p><span class="two"></span></p>
- <p><span class="three"></span></p>
- </div>
- <div class="hot-city">
- <p>热门城市</p>
- <ul>
- <li onClick="selectPP(0,1)">北京</li>
- <li onClick="selectPP(10,1)">上海</li>
- <li onClick="quickselectC(18,0)">广州</li>
- <li onClick="quickselectC(18,1)">深圳</li>
- <li onClick="quickselectC(12,0)">杭州</li>
- <li onClick="quickselectC(11,0)">南京</li>
- <li onClick="quickselectC(11,4)">苏州</li>
- <li onClick="selectPP(1,1)">天津</li>
- <li onClick="quickselectC(16,0)">武汉</li>
- <li onClick="quickselectC(17,0)">长沙</li>
- <li onClick="selectPP(21,1)">重庆</li>
- <li onClick="quickselectC(22,0)">成都</li>
- </ul>
- <p>选择省份/地区</p>
- </div>
- <a id="backUp" class="back" href="javascript:void(0)" title="返回"></a>
- <a id="closeArea" class="close" href="javascript:void(0)" title="关闭"></a>
- </header>
- <article id="areaBox">
- <ul id="areaList" class="area-list"></ul>
- </article>
- </section>
- <!--遮罩层-->
- <div id="areaMask" class="mask"></div>
- </div>
- </div>
- <div class="ui-form-item ui-border-b">
- <label>居住地址</label>
- <div class="ui-select">
- <input id="expressArea1" data-name="custRa" data-required="true" data-label="居住地址" placeholder="选择省市区" readonly style="padding-left:0;">
- </div>
- </div>
原文地址:http://www.freejs.net/article_biaodan_699.html