How To Get The Current Value And Option Text Of A Select Using jQuery
erics, Posted April 18th, 2011 at 2:08:57am
1 2 3 4 5 |
var SelectedValue = jQuery('#PickList').val(); var SelectedText = jQuery('#PickList :selected').text(); if (SelectedValue) { alert('You chose: '+SelectedText); } |
Leave Your Comment
All fields marked with "*" are required.