If you need to use :contains() as a selector but need a case insensitive one, you need to extend jQuery yourself:

This function will do it:

$.extend($.expr[':'], {
    'containsi': function(element, i, match, array)
        return (element.textContent || element.innerText || '').toLowerCase().indexOf((match[3] || "").toLowerCase()) >= 0;

By admin

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.