Mobile phone End-to-province/city linkage, end-to-province/city Linkage
The plug-in used is LArea.
Usage
<link href="~/Assets/js/5iweb2016073010/css/LArea.css" rel="stylesheet" type="text/css" />
<script src="~/Assets/js/5iweb2016073010/js/LAreaData1.js"></script> <script src="~/Assets/js/5iweb2016073010/js/LAreaData2.js"></script> <script src="~/Assets/js/5iweb2016073010/js/LArea.js"></script>
<input type="text" value="" placeholder="" id="txt_area" > <input type="hidden" id="hd_area"/>
Var area1 = new LArea (); area1.init ({'trigger': '# txt_area', // trigger the Selection control text box, after selection, the name attribute is output to the location 'valueto ':' # hd_area '. // After selection, the id attribute is output to the location 'keys': {id: 'id', name: 'name'}, // bind the relevant field id of the data source to the value attribute of valueTo. Output name corresponds to the value attribute of the trigger and output 'type': 1, // data source type 'data': LAreaData // data source });
Problem: When you click input, the software disk is displayed by default, overlapping with the province/city selector popped up by the plug-in.
Solution:
$ ("# Txt_area"). focus (function (){
Document. activeElement. blur ();
});
Or
<inputtype="text" value="" placeholder="" id="txt_area" onfocus="this.blur();"/>
Plugin address http://www.5iweb.com.cn/page-useful-effects/723.html