/ Published in: JavaScript
Expand |
Embed | Plain Text
var dropdown = document.getElementById('myDropdown'); var index = dropdown.selectedIndex; var value = dropdown[index].value;
You need to login to post a comment.
loungerdork on 07/07/09
1 person have marked this snippet as a favorite
var dropdown = document.getElementById('myDropdown'); var index = dropdown.selectedIndex; var value = dropdown[index].value;
You need to login to post a comment.