Use the http://markjs.io library and an input element to allow users to enter a search query and highlight any matching text in a specified element on the page.
Basic Jquery example: https://jsfiddle.net/julmot/vpav6tL1/
1. Add an attribute to the input field of name="keyword"
2. Add a class of .content to the element it should highlight text within that matches the value entered into the input
Have feedback or a question related to this item? Drop us some feedback!
Subscribe for updates
Get updates on the latest curated resources and be the first to hear of new features.Subscribe
Creative portfolios, auth tools, and a URL code trick.
We hope you are having a stellar week! Here are this weeks featured inspiration, code and resources.