Given the Following JS/JQUERY, how to prevent it from being case sensative
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
17:33 UTC
Read the original article
Hit count: 133
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 insensative so either all caps or no caps or a mix all match for the file extenstion?
Thanks
© Stack Overflow or respective owner