JavaScript implements data swap between two select controls

Source: Internet
Author: User

For the tutorial of helping customers (www.bkjia.com), you may have seen that the customized bar of IE can swap the data of two select boxes, and implement two Select interchange data on the webpage. Have you ever seen it? It is simple and practical, and has been seen by the family. If you don't need it for the time being, add it to your favorites for later use.

<Title> two Select statements exchange data, simple and practical </title> <table width = "300" border = "0" cellspacing = "0" cellpDoAdding = "0" align = "center"> <tr> <td width = "45%" align = "center"> <select id = "select1" size = "5" multiple style = "width: 100px "> <option value =" 111 "> homepage </option> <option value =" 222 "> webmaster tools </option> <option value =" 333 "> fire encyclopedia </option> <option value = "444"> webmasters Forum </option> <option value = "555"> World Rankings </option> <option value = "666"> webmaster navigation </option> </select> </td> <td width = "10%" align = "center"> <input name = "DoAdd" type = "button" value = ">" onClick = "DoAdd () "> <br> <input name =" DoDel "type =" button "value =" <"onClick =" DoDel () "> </td> <td width =" 45% "align =" center "> <select id =" select2 "size =" 5 "multiple style =" width: 100px "> </select> </td> </tr> </table> <br/> <center> for more tutorials, see <a href = http://www.bkjia.com/ Target = _ blank _ fcksavedurl =" http://www.bkjia.com/ Target = _ blank "> http://www.bkjia.com/ </A> </center>

Tip: the code can be modified before running!

Related Article

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.