Small move around

Source: Internet
Author: User

<! DOCTYPE HTML Public"-//W3C//DTD XHTML 1.0 transitional//en" "HTTP://WWW.W3.ORG/TR/XHTML1/DTD/XHTML1-TRANSITIONAL.DTD">"http://www.w3.org/1999/xhtml">"Content-type"Content="text/html; Charset=utf-8"/><title> Small Mobile </title><script type="Text/javascript">function fun1 () {varArrform=document.getelementbyid (" Left"); varArrto=document.getelementbyid (" Right"); //object's data setArr=arrform.options; //increase the selected data to the right         for(i=0; i<arr.length;i++)        {            //determine if it is selected            if(arr[i].selected) {Arrto.options.add (NewOption (Arr[i].text,arr[i].value)); }        }        //Delete the selected data         for(i=0; i<=arr.length-1; i++)        {            if(arr[i].selected) {//remove the data on the left; the parameter is an optionArrform.remove (i); }}} function Fun2 () {varArrform=document.getelementbyid (" Left"); varArrto=document.getelementbyid (" Right"); //object's data setArr=arrto.options; //increase the selected data to the right         for(i=0; i<arr.length;i++)        {            //determine if it is selected            if(arr[i].selected) {Arrform.options.add (NewOption (Arr[i].text,arr[i].value)); }        }        //Delete the selected data         for(i=0; i<=arr.length-1; i++)        {            if(arr[i].selected) {//remove the data on the left; the parameter is an optionArrto.remove (i); }        }    }</script><style type="Text/css">Select{width:100px;}</style>SelectId=" Left"Size="Ten"> <option> One</option> <option> A</option> <option> -</option> <option> -</option> <option> the</option> <option> -</option> <option> -</option> <option> -</option> <option> +</option> </Select> </td> <td> <input type="Button"Value=">>>"onclick="fun1 ()"/><br/><br/> <input type="Button"Value="<<<"onclick="fun2 ()"/> </td> <td> <SelectId=" Right"Size="Ten"> </Select> </td> </tr> </table> </body>

Small move around

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.