I want to filter the list without case sensitive. I want to match only character not match upper case or lower case.
Try this :
function filter(element) { var value = $(element).val(); $("#theList > li").hide(); $("#theList > li:contains('" + value + "')").show(); }