Created
April 12, 2012 21:43
-
-
Save cjolly/2371206 to your computer and use it in GitHub Desktop.
How to get the text of the selected option with jQuery
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('#select_list_id').live 'change', -> | |
selectedOptionText = $(this).find("option:selected").text() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment