1024programmer Java JavaScript, implementation of the function of moving the select tag element left and right

JavaScript, implementation of the function of moving the select tag element left and right

Design a piece of code through Javascript to achieve the following functions. The initial interface is as shown below. Select several options in the left label and then click –> to move them to the right frame and the left options disappear. After clicking ====>, all the options on the left will be moved to the right. After clicking on a few options on the right, and then clicking <—, these options will be moved to the left. Click <====, and the options will be moved to the right. All options are moved to the left. The code is as follows:




  
  
  



   
     one
     two
     three
     four
     five
     six
   


   " Onclick="add()">
" Onclick="addall()">
<input type="butoon" value="
<input type="butoon" value="
seven

The results are as follows

The above is the entire content of this article. I hope it will be helpful to everyone’s study and I hope you will support me a lot.

This article is from the internet and does not represent1024programmerPosition, please indicate the source when reprinting:https://www.1024programmer.com/javascript-implementation-of-the-function-of-moving-the-select-tag-element-left-and-right-2/

author: admin

Previous article
Next article

Leave a Reply

Your email address will not be published. Required fields are marked *

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: [email protected]

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索