An easy to use highlight plugin for jQuery
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
README.markdown
jquery.easyMark.js

README.markdown

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;
}