Created
January 21, 2017 15:26
-
-
Save diewland/8d469f3d40f606c3cc0cd7a664a26869 to your computer and use it in GitHub Desktop.
Find combobox index on change event
This file contains hidden or 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
$('#combobox').change(function(){ | |
var idx = $(this)[0].selectedIndex; | |
console.log(idx); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment