Return to Snippet

Revision: 33176
at October 6, 2010 20:01 by blipz


Initial Code
$('#select').change(function() {
   var text = jQuery(this).find(':selected').text(); //get the option text
   var value = jQuery(this).val(); //get the option value
});

Initial URL
http://www.musicsaurus.com

Initial Description
very minimal way to get the value and text of a combo box using jquery

Initial Title
jquery get selected text

Initial Tags
jquery, text

Initial Language
jQuery