How to Use the multiple drop-down box of jQuery
I. Basic Attributes
1. Select All or all, for example, part 1
CheckAllText default value: check all
UncheckAllText default value: uncheck all
$ ("Select"). multiselect ({
CheckAllText: "select all ",
UncheckAllText: "NONE"
});
2. Prompt information for the selected item, part 1
SelectedText default: # selected
$ ("Select"). multiselect ({
SelectedText: select [#] items, total [#] items"
});
3. The selected value, part 1 of the displayed content
$ ("Select"). find ("option: selected"). text ();
4. The key value corresponding to the selected item. The returned data format is as follows:
1, 2, 3, 6, 7
Var keys = $ ("# depart"). val ();
Ii. Basic events
Beforeopen events before the drop-down box is opened
Open
Events before the beforeclose drop-down box is closed
Close
Checkall all selected events
Uncheckall all deselected events
Click Event when one click is selected
Iii. Main Methods
Refresh control
CheckAll Check all checkboxes.
UncheckAll Uncheck all checkboxes.
GetChecked Returns an array of all the checked checkboxes.