Posted By

loungerdork on 07/07/09


dropdown Value selected

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


Get selected value from HTML dropdown

 / Published in: JavaScript

  1. var dropdown = document.getElementById('myDropdown');
  2. var index = dropdown.selectedIndex;
  3. var value = dropdown[index].value;

Report this snippet  

You need to login to post a comment.