Add Multi <select> - Node.js HTML

Node.js examples for HTML:Select Option

Description

Add Multi <select>

Demo Code


function addMultiSelect(source,target){
      var oDest=document.getElementById(target);
      for (var i=0;i<document.getElementById(source).options.length;i++)
      {   /*from   w  w  w.  j ava 2s .  c o  m*/
          var e=document.getElementById(source).options[i];   
          if (e.selected){   
              insert(oDest,e.innerText,e.value);   
          }   
     }   
     oDest=document.getElementById(source);   
//     removeSelected(oDest);   
}

Related Tutorials