Created
January 18, 2014 03:12
-
-
Save edomaru/8485647 to your computer and use it in GitHub Desktop.
Set Selected Option on HTML select element
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
// author http://stackoverflow.com/users/112407/rune-fs | |
$("div.id_100 option:selected").prop("selected",false); | |
$("div.id_100 option[value=" + value + "]").prop("selected",true); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment