This is Jquery code that is supposed to hide the li > a's that dont contain the matched value in the text input. Theres a function that checks the keyup of the input and it sees if the div(s)? matches the value.
It then SUPPOSED TO hides the ones that dont have the contained value inside of input.
<input type="text" id="targety" placeholder="Filter Items..." />
<ul id="ded">
<li><a href="#">Acura</a></li>
<li><a href="#">Audi</a></li>
<li><a href="#">BMW</a></li>
<li><a href="#">Cadillac</a></li>
<li><a href="#">Ferrari</a></li>
</ul>
</div>
<script>
$('#targety').bind('keyup', function() {
if($("#targety").val() == ""){
$("#ded > li > a").show();
}else{
$("#ded > li > a:visible:not(:contains('"+$("#targety").val()+"')").hide("fast");
}
} );
</script>