Home  >  Article  >  Web Front-end  >  Example code for exchanging content between Jquery multi-select boxes_jquery

Example code for exchanging content between Jquery multi-select boxes_jquery

WBOY
WBOYOriginal
2016-05-16 17:30:09860browse
Copy code The code is as follows:


Untitled page

                                                                                       Add options to the other party
                                                                                                                                                                                                                                                                 );
                                                                        ; 🎜> var options=$('#select1 option');
var remove=options.remove();
remove.appendTo("#select2");
});
              // Return the selection to the other party
                                                                                                                                                                                                                                                                                              );
                                                                          ; 🎜> var options=$('#select2 option');
var remove=options.remove();
remove.appendTo("#select1");
});
}) ;






                                                                                                                  ;br />
; Add all to the right>>


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn