I’m pleased to announce that the first version of my jQuery highlight plugin (based on jQuery of course) that supports a lenient mode was released today.
It normalizes or unaccents text before the highlight pattern is applied (sort of). So, it’s a quite a bit more advanced and versatile than plugins that are simply case-insensitive.
Go check it out, there’s a demo included!
That’s an amazing plugin .
However , when I need to search for specific ID of div to be highlighted , it doesn’t work .
$(function() {
$(\#searchableField\).highlight($(‘#searchKeyword’).val());
});
And it’s not because you “forgot” the second parameter of the highlight function?
What doesn’t work? What’s the error message in the console? Could it be that $(‘#searchKeyword’) simply returns null?
Hi, can I make different words have a different color?