A jQuery plugin to disable certain elements on a page from being searched. Check out the demo to see it in action.
Include jQuery and disableFind.js.
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> <script src="disableFind.js"></script>
Call the disableFind() function on the element(s) you want to make unsearchable.
$('p').disableFind(); // make all paragraphs unsearchable $('.unsearchable').disableFind(); // make all elements with "unsearchable" class unsearchable $(body).disableFind(); // make all text on page unsearchable