Search keyword highlighting with jQuery

You can make your search results a bit fancier by using a little of bit of jQuery to highlight your search keyword or going with more feature-rich tools e.g. https://markjs.io/

As once the legend said (was a wonderful person)

(less dependencies are better)

So as we already had jQuery in our Ruby On Rails project I decided to not add more dependencies and I just go with jQuery only.

Short story but hope it’d come in handy!

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store