A
A
Artqookie2011-04-07 22:32:41
JavaScript
Artqookie, 2011-04-07 22:32:41

Finding text on a page (JavaScript)

Tell me a normal solution, so that something like on the Artgorbunov's website of the constitution - http://constitution.kremlin.ru/ .

Requirements:

  • Non-server, so JavaScript (jQuery, other frameworks, whatever)
  • Search should be instant when typing
  • Highlight found
  • Memorization of the found is not necessary. We erase the text - we are looking for another text
  • Move to the first element found
  • Optional: move "forward" "backward" through the found elements


Googled a lot, did not find an acceptable one.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
P
Pavel Bakin, 2014-11-02
@recomp

lloiser.github.io/jquery-searcher

K
KELeborn, 2013-05-22
@KELeborn

habrahabr.ru/post/180573/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question