Created
January 18, 2017 16:02
-
-
Save chukShirley/f7d64d7ffa3f4ea80dd8f96df51267f9 to your computer and use it in GitHub Desktop.
Select2 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
$(document).ready(function() { | |
$('#mySelect2').select2({ | |
// properties | |
}).on('change', function (e, added) { | |
// If an option has been selected | |
if (e.val !== '') { | |
} | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment