Pages

Tuesday 11 March 2014

Getting drop down selected value and text using jquery

//For selecting value
$('#myList option:selected').val();
//For selecting text
$('#myList option:selected').text();

No comments:

Post a Comment