Skip to content

Instantly share code, notes, and snippets.

@dennysfredericci
dennysfredericci / search-ul-li-item.js
Created July 22, 2014 18:19
A simple jquery code to search a text inside of li tag
//searchText is a input type text
$('#searchText').bind('keyup', function() {
var searchString = $(this).val();
$("ul li").each(function(index, value) {
currentName = $(value).text()
if( currentName.toUpperCase().indexOf(searchString.toUpperCase()) > -1) {