jQuery: caseless selector search? -
for example searching
$('[name=whatever]')
should find
$('[name=whatever]') , $('[name=whatever]')
thanks ;)
any possible solution going inefficient, because cannot work browser's native selector engine. better use class identify elements.
however, if you're insistent on approach, can use filter()
:
$('[name]').filter(function () { return this.name.tolowercase() == "whatever"; });
Comments
Post a Comment