document.getElementById("selectOption").style.display="block"; document.getElementById("selectOption").style.position="absolute"; document.getElementById("selectOption").style.top=document.getElementById(id).offsetTop 25; document.getElementById("selectOption").style.left=document.getElementById(id).offsetLeft 20; } function selectM() { var obj = document.getElementById("mySelect"); alert(obj.selectedIndex);
} function checkselect(objname){ o = document.getElementById(objname); t = document.getElementById("output"); var intvalue=""; for(i=0;iif(o.options[i].selected){ intvalue =o.options[i].value ","; } } t.value=intvalue.substr(0,intvalue.length-1); 警報(intvalue);