Skip to content

Instantly share code, notes, and snippets.

@diewland
Created January 21, 2017 15:26
Show Gist options
  • Save diewland/8d469f3d40f606c3cc0cd7a664a26869 to your computer and use it in GitHub Desktop.
Save diewland/8d469f3d40f606c3cc0cd7a664a26869 to your computer and use it in GitHub Desktop.
Find combobox index on change event
$('#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