For example my html is like below,
<div id="mainDiv">
<div id="1">This is animal page</div>
<div id="2">No animal here</div>
<div id="3">Jame Bond</div>
<div id="4">Simple Bond</div>
</div>
And I have a input field like this
<input type="text" id="search">
While searching anything it has to list the result in other div.
Like when I search for keyword bond it should show like below
<div id="mainDiv">
<div id="3">Jame Bond</div>
<div id="4">Simple Bond</div>
</div>
A little further with Blender’s answer,
Try this
Demo link : http://jsbin.com/ocugug/1