function copyInputSelect(from,newName){ var inputObj = document.createElement('select'); inputObj.setAttribute('class', from.getAttribute('class')); inputObj.setAttribute('name', newName); //loop through the choices opts = from.options; for(var i=0; i