/ Published in: jQuery
very minimal way to get the value and text of a combo box using jquery
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$('#select').change(function() { var text = jQuery(this).find(':selected').text(); //get the option text var value = jQuery(this).val(); //get the option value });
URL: http://www.musicsaurus.com