1rosehip / 1rosehip/jplist

How to make the search value change via javascript?

Đang mở
#303 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
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á.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.