Highlight Text From Search Query

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

Get hired at Highlight Text From Search Query

We've partnered with startups.gallery to help you find new opportunities at the leading startups in design, development, and AI.

Industries

Creators

Have feedback or a question related to this item? Drop us some feedback!

Curated: 
3.16.21

Similar items

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

Ari Ahokas

2.5.24

Darkroom

2.5.24

Thomas Boyer-Gibaud

2.5.24

Western Sydney Lakes

2.5.24

Dare to Share

2.5.24

Snapshift

2.5.24

Teardowns.ai

2.5.24

Impulse Cooktop

2.2.24

Martin Stoleru

2.2.24

Studio Essence

2.2.24

Junior Films

2.1.24

SPCSHP

2.1.24

Venwise

2.1.24

Unbench

1.31.24

Intro to Web Design

1.30.24

Diana's Seafood

1.30.24

Josh Jacobs

1.30.24

Relume

1.30.24

Capsule

1.30.24

That Thing

1.28.24

Cue

1.28.24

Aaron Poe & Co

1.28.24

Veed

1.28.24

Letterly App

1.28.24

ART+TECH Report

1.26.24

Supershine

1.26.24

Multi App

1.26.24

Smootify

1.25.24

Robin AI

1.25.24

Jeffrey Martin

1.25.24

Holland

1.25.24

Love The Work More

1.25.24

HTML <dialog> Modal

1.22.24

The New Dialog HTML Element Changes Modals Forever

1.21.24

Neither/Nor

1.19.24

Framer: 2023 Year in Review

1.18.24

Mindbloom

1.17.24

E&W Design Studio

1.17.24

Dauw

1.17.24

Hydra

1.17.24

Resliders

1.17.24

Museum Studio

1.17.24

Caserne

1.17.24

Baked Graphics

1.17.24

Darina CG Artist

1.16.24

Custom Tag Form Spam Prevention

1.15.24

Produlis

1.15.24

TinySync - Airtable → Webflow CMS Sync Via CLI

1.15.24

Toggle Dark Mode with CSS :has()

1.14.24

QCRN Studio

1.12.24

Dann Petty

1.11.24
Load more

Bummer, no results

Try a different search/filter combo, or drop us some feedback if there is something missing you would love to see!

Reset filters

Subscribe for updates

Get updates on the latest curated resources and be the first to hear of new features.