Posted By

arpo on 02/05/10


Tagged


Versions (?)

Get value from a dropdown menu


 / Published in: JavaScript
 

  1. function getDD(sId){
  2. o=document.getElementById(sId)
  3. for (counter = 0; counter < o.length; counter++){
  4. if (o[counter].selected)
  5. return o[counter].value;
  6. }
  7. }

Report this snippet  

You need to login to post a comment.