Given the Following JS/JQUERY, how to prevent it from being case sensative
- by nobosh
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