I\'m trying to compare a string given in an input to a div\'s content using jQuery contain.
Problem is, I want to be able to check if the string is cont
You can write your own selector by extending jQuery. Try this
$.extend($.expr[':'], {
'containsi': function(elem, i, match, array)
{
return (elem.textContent || elem.innerText || '').toLowerCase()
.indexOf((match[3] || "").toLowerCase()) >= 0;
}
});
Useage $(".dDimension:containsi('" + dInput + "')").css("display","block");