Highlight Text From Search Query

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
Tags
Creator
Share this item
Have feedback or a question related to this item? Drop us some feedback!
Curated:
3.16.21
Fix Paragraph Runts With Nonbreaking Space
10.8.20
Get Website Meta Data w/ Airtable Script
1.10.23
Get YouTube Thumbnails w/ Airtable Script
12.22.22
View All or Show Less List Pagination
4.11.22
Fetch and Nest Content From Another Page
3.17.22
Set Hidden Input Value From URL Parameters
8.25.21
Subscribe for updates
Get updates on the latest curated resources and be the first to hear of new features.
SubscribeStyle, type, and motion in harmony, architectural web glory, AI your brand
When AI becomes your copilot, make sure you still know how to fly the plane.
Featured inspo
Bleibtgleich
Refero Styles
Daniel Sun
21Oaks