Skip to content

andreivictor/select2-searchInputPlaceholder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Select2 - 'searchInputPlaceholder' option

Extends Select2 v4 plugin by adding an option to set a placeholder for the 'search' input field.

Demo

Demo available on JsFiddle.

Usage

Initialize the select2 plugin with the searchInputPlaceholder option.

$("select").select2({
    // options 
    searchInputPlaceholder: 'My custom placeholder...'
});

Setup

Include the script after Select2 main javascript file:

<script src="select2.js"></script>
<script src="select2-searchInputPlaceholder.js"></script>

About

Extends Select2 plugin by adding an option to set a placeholder for the dropdown 'search' input field.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published