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

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -