Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.0.1] How to set the search input box's placeholder? #4061

Closed
livem opened this issue Jan 5, 2016 · 1 comment
Closed

[4.0.1] How to set the search input box's placeholder? #4061

livem opened this issue Jan 5, 2016 · 1 comment

Comments

@livem
Copy link

livem commented Jan 5, 2016

Hi , I want to set some tips in dropdown search input box with input tag attributes placeholder ,

what look like blew:
input-placeholder

the select2 option placeholder is not for this.

{ placeholder:'......' }

Now I do this with select2:open event :

$("select").on("select2:open", function(event) {
    $('input.select2-search__field').attr('placeholder', 'please type something...');
});

Is there some new option for this in the next version?

Thanks.

@kevin-brown
Copy link
Member

This is a duplicate of #3362.

The old option was not migrated to 4.0.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants