Thursday, July 17, 2008

Getting the text from a drop down select box

var e = $('element_id');
var idx = e.selectedIndex;
e.options[idx].text;


Links
http://www.webdevelopersnotes.com/tips/html/getting_the_text_from_an_html_drop_down_selection_list.php3

No comments: