Created
October 31, 2017 08:57
-
-
Save Bewitchedyegor/282b9c8fc9dd30d5deadfc4d8fe7d312 to your computer and use it in GitHub Desktop.
Add action on option being selected in dropdown
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
$('#list').change(function() { | |
if ($(this).val() === '2') { | |
// Do something for option "b" | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment