I'm new to jQuery and understand the basics, but I'm having problems with certain parts of the page, so I need to fill in some knowledge gaps.
I understand that $(this).attr('href') will get the href attribute inside the current focused / clicked element.
But what if it says: $($(this).attr('href')); ?
I did not write his code, which I have in the script, and I'm not sure if this is just an error or intentional.
I have a feeling that itβs pretty simple, but how to search for $($()) ? And when I search for $($(this).attr('href')) , all I get is the documentation for the original sentence, which I already understand.
Is it just a typo or a separate precedent?
source share