Not sure what's wrong with this but...
$(document).ready(function(){
$('#search_name').keyup(function(){
search_name = $(this).val();
$("#names li:contains('" + search_name + "')").addClass('highlight');
});
});
Is there something I'm missing or not seeing in this? All I'm trying to do is to highlight a li when I type in the name in a text field.