You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: