My HTML is like this
<div class="innerbox">
<div class="simple-list02">
<ul>
<li class="first-child last-child odd-item">
<h5 class="text-style02">
<a href="/kontakt/find-medarbejder/ledelse/">Ledelse</a>
</h5>
</li>
</ul>
<div class="clearfix"></div>
</div>
<div class="simple-list02">
<ul>
<li class="first-child last-child odd-item">
<h5 class="text-style02">
<a href="/kontakt/find-medarbejder/administration/">Administration</a>
</h5>
</li>
</ul>
<div class="clearfix"></div>
</div>
<div class="simple-list02">
<ul>
<li class="first-child last-child odd-item">
<h5 class="text-style02">
<a href="/kontakt/find-medarbejder/omstillingbogholderi/">Omstilling/bogholderi</a>
</h5>
</li>
</ul>
<div class="clearfix"></div>
</div>
</div>
and I got an HTML input box like this
<input type="text" name="textbox" id="txtesearch" class="text" placeholder="Søg efter medarbejder">
Now what I want is When some one enters "Ledelse" in this textbox I want to hide all div which got a class "simple-list02"
excluding first one as it contains an h5
with text "Ledelse" in it.
I had tried hard coding all the h5 text,But I don't believe its an ideal solution and as this is jquery there must be a smarter way to achieve this .can any one give me a hand