I came across this thread which touches on a similar issue, but I'm still unsure how to approach my specific inquiry.
My confusion lies in understanding the context of $(this)
. Whenever I try to alert it, all I see is [object Object]
. Essentially, when I use alert($(this))
, I want the result to be a particular <li>
tag so that I can implement an IF ELSE statement for certain links.
Any help would be greatly appreciated. Best, James