I’ve looked at some js/jquery code and I saw this line here:
$(this).
How can one find out what methods to call on this thing. Is there something similar to javadocs for js?
Is this code in js or is it jquery?
Note: this might be of relevance to those who reply, I write backend code and never done front end (not more than simple html)
The
$method is just an alias for thejQuerymethod. It will wrap the element (or object) and expose the methods available to the framework. Many other javascript libraries use$as an alias as well.