How to make the search value change via javascript?
Đang mở
- Ngôn ngữ chính
- HTML
- Star
- 435
- Fork
- 168
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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.
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.