Bookmark and Share BitCoin Donate: 13t8gAWVpHP2ddxMp88d1NFpZjnFJC6UwK

How to write a case insensitive filter or selector with jquery

The jquery below returns all href's which equals 'mylowercasestring' for any case.

var meta = $('a href').filter(function() {return this.name.toLowerCase().contains("mylowercasestring");});