, 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)