I am currently facing an issue with my code. It was working fine in jsFiddle, however, when I try to use it outside of fiddle, I am getting errors and it's not working properly.
$('.down-photo').click(function() {
$(this).parent('.img-mask').toggleClass('hide');
});
Upon checking in Firebug, I see the following error: Uncaught SyntaxError: Unexpected Token ILLEGAL
Being new to javascript and jQuery, I am unsure of what is causing this error and what it actually means.
Thank you for your help!