Related Uses of JQuery MultiSelect

Source: Internet
Author: User

These two days to do the project need to use the multi-select control, so chose the jquery MultiSelect control, introduce some common related properties.

Detailed Address: Http://davidstutz.github.io/bootstrap-multiselect

To add a reference:

Page:

<divclass="Mui-input-row"> <spanclass="Mui-icon mui-icon-contact mui-pull-right"></span> <label style="color: #8f8f94; font-size:15px!important"> &nbsp; People </label> <SelectId="example-getting-started"multiple="multiple">@foreach (varEmpinch(list<selectlistitem>) {viewbag.unemplist) {<option value="@emp. Value"> @emp. Text</option>                     }          </Select></div>

Js:

$ (document). Ready (function () {$ ('#example-getting-started'). MultiSelect ({nonselectedtext:'Please select a tracker',//defaultFilterplaceholder:'Search',//Display in search boxNselectedtext:'bit Tracker', enablefiltering:true, Includeselectalloption:true,//is it a self-couplingSelectalltext:'Select All/No', Allselectedtext:'all people are selected', MaxHeight: -,//Maximum HeightDropup:true,//whether the control is searching upwards            }); //The value is used directly with. val () to get multiple selected values            varresult = $ ('#example-getting-started'). Val (); //Set Default value note format            varids = [1,2,3,4,5]; $('#example-getting-started'). Val (IDs); $('#example-getting-started'). MultiSelect ("Refresh"); });

JQuery MultiSelect related uses

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.