Skip to content

Instantly share code, notes, and snippets.

@peterwegren
Created December 5, 2016 17:45
Show Gist options
  • Save peterwegren/493c878df1aa2785ac7e9cefcc69f6d9 to your computer and use it in GitHub Desktop.
Save peterwegren/493c878df1aa2785ac7e9cefcc69f6d9 to your computer and use it in GitHub Desktop.
Set Select2 search input placeholder text.
// #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