My html looks like this
jK JFOO
Why not use the filter function, and pass in a function that uses a case insensitive regex?
filter
var filteredDivs = $("div.link-item").filter(function() { var reg = new RegExp(txtsearch, "i"); return reg.test($(this).text()); });
DEMO