Skip to content

Instantly share code, notes, and snippets.

@nilskoppelmann
Created March 5, 2016 14:08
Show Gist options
  • Save nilskoppelmann/2135335b5611145d7571 to your computer and use it in GitHub Desktop.
Save nilskoppelmann/2135335b5611145d7571 to your computer and use it in GitHub Desktop.
get current (after change) value of select on change
$('select#f').addEventListener('change', function(e) {
console.log(this.options[this.selectedIndex].value);
}, false);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment