Using Jquery, how can I say(this is within a click() function):
if(element clicked has an href == 'the href location'){
};
I was using something like this:
if ($(this).attr('href') == 'image.png') {
//Do Stuff
};
This wasn't working, because I found out that $(this) was referring to the window. Furthermore, I don't know how to make the use of $(this) specific to something.
Any help would be appreciated.