Given the following JS/JQUERY, how to prevent it from being case sensitive
Posted
by nobosh
on Stack Overflow
See other posts from Stack Overflow
or by nobosh
Published on 2010-03-28T17:27:01Z
Indexed on
2010/03/28
23:23 UTC
Read the original article
Hit count: 139
I have the following line of code which works well:
$("a.grouped_elements[href$=.jpg],a.grouped_elements[href$=.png],a.grouped_elements[href$=.gif]").fancybox();
Problem is, if the href is .JPG it doesn't work it only works with .jpg. How can I make the above case insensitive so either all caps or no caps or a mix all match for the file extension?
Thanks
© Stack Overflow or respective owner