This article is a mirror article of machine translation, please click here to jump to the original article.

View: 18728|Reply: 0

[JavaScript] JS implements the search function via the input box

[Copy link]
Posted on 3/11/2021 4:46:23 PM | | | |

Requirements: By entering content in the input box, you can quickly locate the element in the UL list, and the principle is to quickly locate the id element by adding a # sign to the link.

Review:

bootstrap input box association prompt
https://www.itsvse.com/thread-3527-1-1.html


Code:


Support Chinese search, will not truncate Chinese!Let's take a look at the renderings first:

jQuery (JS) to determine whether the Chinese input method is complete
https://www.itsvse.com/thread-9585-1-1.html



Directly on the js code:







Previous:jQuery (JS) to determine whether the Chinese input method is complete
Next:HtmlAgilityPack parses HTML tips for rollups
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com