How to use the Lado box under JQuery

Source: Internet
Author: User

Effect chart

First, the basic attributes

1. Select all and do not choose, such as the 3rd part of the effect chart

Checkalltext Default value: Check all

Uncheckalltext Default value: Uncheck All

$ ("select"). MultiSelect ({

Checkalltext: "Select All",

Uncheckalltext: "All do not choose"

});

2. Prompt for selected items, as part 2nd of the figure

SelectedText Default: # Selected

$ ("select"). MultiSelect ({

SelectedText: Select the "#" Item, Total "#"

});

3. Value selected, as shown in part 1th of the figure

$ ("select"). Find ("option:selected"). Text ();

4. The key value corresponding to the selected item, the data format is returned as follows:

1,2,3,6,7

var keys = $ ("#depart"). Val ();

II. Basic Events

Beforeopen the event before the current Drop-down box is opened

Open

BeforeClose the event before the dropdown box is closed

Close

Checkall event after a full selection

Uncheckall All Events not selected

Click event when one is selected

Iii. the Main method

Refresh Control

Checkall Check all checkboxes.

Uncheckall uncheck All checkboxes.

getchecked Returns An array of the checked checkboxes.

Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.