Location:Home > JS special effects code > Selection and screening

jQuery multi-level drop-down city selection plugin

2020-06-25 137views
The address selector based on jQuery supports 5-level linkage of province, city, District, township and community (15 level linkage can be configured by user). Parameter configuration ID: "address_ picker_ Text ", / / which page element do you want to display? Level: 3, / / set several levels of linkage. The default value is 3, which can support 1-5leveldesc: [" province "," city "," district / county "," township "," community "] / / the text of each level linkage title is displayed. By default, index:" 996 "is displayed on the left, / / Z-index of floating panel, and '996 ` separator:" / ", is supported by default, //The text value separator returned after selection, such as' Sichuan Province / Chengdu City / Wuhou District ', the default value' /'isinitclick: true, / / is the element ID to automatically bind the click event, the default is' true 'iswithmouse: false, / / whether the floating panel displays the coordinates when the mouse clicks (not based on the coordinates of the element ID). The default is' false ` offsetx: 0, //Floating panel X coordinate offset, the default is' 0 ` offsety: 0, / / floating panel y coordinate offset, the default is' 0 ` emptytext: "no data yet" / / when the data is empty, the default 'no data' color: "ා 56b4f8", / / theme color, default ා 56b4f8fontsize: '14px' / / font size, default 14pxisasync: false, //Whether to load data asynchronously or not, the default is false. If true is set, asyncurl must be passed to asyncurl: ', / / if the URL is loaded asynchronously, the data data will be invalid. Btnconfig: [], / / the user-defined button group displayed at the bottom of the panel. See the description below for the format. Data is not transferred by default: "/ ┌ -- if isasync is not specified, the data will prevail and all data will be loaded at one time