The application of the sharp jquery-5--drop-down box (see the wording)

Source: Internet
Author: User

, you can add the options to the right, either to the right, or by double-clicking through the middle button. Conversely, it can.

Left check Add to right:

$ ("#add"). Click (function() {  // Add button click event    var op = $ ("#select1 option: Selected ");  // Gets the selected option    Op.appendto ("#select2");  // Add the selected option to the right select,appendto can delete the left and add to the right  });

The left side is all added to the right:

$ ("#add-all"). Click (function() {  // Add All button click event    var op = $ ("#select1 Option ");  // get all options    Op.appendto ("#select2");  // add all to the right of Select});

Double-click to add to the right:

$ ("#select1"). DblClick (function() {  /// to Select1 add double-click event    varthis )  // get the selected option, note the notation     op.appendto ("#select2");  // append to Select2});

The application of the sharp jquery-5--drop-down box (see the wording)

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.