Created
July 17, 2012 06:45
-
-
Save CodeNegar/3127674 to your computer and use it in GitHub Desktop.
javascript: jquery selected dropdown value and text
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
jQuery("#drop1 option:selected").text(); // text | |
$("#drop1option").is("selected").text() // text, a little faster | |
jQuery("#drop1").val(); // value |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment