/easyMark

An easy to use highlight plugin for jQuery

Primary LanguageJavaScript

jquery.easyMark

An easy to use "find & highlight" plugin. You simply pass it a space separated string of words to highlight and a target and it will find all occurrences of the words and highlight them.

Highlighting:

$("#target").easymark('highlight', "highlight these words");

Remove highlight:

$("#target").easymark('removeHighlight');

Styling:

.highlight{
  background-color: yellow;
}