Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 513 Bytes

README.creole

File metadata and controls

21 lines (16 loc) · 513 Bytes

jquery.textSearch

A jQuery plugin that provides plain text search in a DOM element.

It's a regular jQuery plugin. To search over a whole document, simply try:

$('body').textSearch('a word');

To remove highlighting (which actually modifies the DOM), try:

$('body').textSearch(false);

It will restore the DOM by reverting modifications. Highlighting can be removed on a subset only.

Options are given as a second parameter:

$('body').textSearch('A wOrD', { caseSensitive: true });