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 make the search value change via javascript? #303

Open
choi12191995 opened this issue Jan 10, 2018 · 0 comments
Open

How to make the search value change via javascript? #303

choi12191995 opened this issue Jan 10, 2018 · 0 comments

Comments

@choi12191995
Copy link

I use the input type to make a live search.
But I need to have a function that auto input the value into the live search input element.
I try to write the code in console: $("#querySearch").val("test");
it didnt cahnge the value on the input element, but check by $("#querySearch").val(), it return "test"

I also set the code, $("#querySearch").val("test")on document reday and onload function, it output same result.

But I set this code inside an onclick function, the input element can display "test" immediately.

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

1 participant