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

Popular posts from this blog

Cursor error with postgresql, pgpool and php -

delphi - ESC/P programming! -

c++ - error: use of deleted function -