I have an input field with id="search".
<input id="search" type="text" />
Also there are few <div>'s that contains some text, like this:
<div id="textblock">Some text here</div>
<div id="textblock">Some other text here</div>
<div id="textblock">Few strokes</div>
<div id="textblock">More words</div>
I need to change style of a <div> (display:none) if that <div> had a text that user types in input field on the go.
For example, if value in the input would be "strokes", div (or divs) with word "strokes" disappears:
<div id="textblock">Some text here</div>
<div id="textblock">Some other text here</div>
<div id="textblock">More words</div>
I was looking for a jQuery solution, and I found some parts of code, but I can't put them together into one working piece. I know I should use keyUp() function, :contains() etc.

idshouldn't be used for more than one element per page, use classes instead (changeid="textblock"toclass="textblock").