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

how to set value after initialized #1

Open
ibk2012 opened this issue Feb 11, 2019 · 1 comment
Open

how to set value after initialized #1

ibk2012 opened this issue Feb 11, 2019 · 1 comment

Comments

@ibk2012
Copy link

ibk2012 commented Feb 11, 2019

i found that it didn't show the value that i setted for the select element,so i want to know how to set value after initialized?

@24x7andrew
Copy link

I use -1 as a default value for Please Select a Value etc,

With that in mind, try:

$('.searchable-select-items [data-value="-1"]').trigger('click');

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