Created
December 5, 2016 17:45
-
-
Save peterwegren/493c878df1aa2785ac7e9cefcc69f6d9 to your computer and use it in GitHub Desktop.
Set Select2 search input placeholder text.
This file contains 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
// #staff_name search input placeholder | |
$('select').on('select2:open', function() { | |
$('.select2-search--dropdown .select2-search__field').attr('placeholder', 'Type to search...'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment