How To Get The Current Value And Option Text Of A Select Using jQuery
erics, April 18th, 2011
1 2 3 4 5 |
var SelectedValue = jQuery('#PickList').val(); var SelectedText = jQuery('#PickList :selected').text(); if (SelectedValue) { alert('You chose: '+SelectedText); } |