I am reading about the jQuery $ .fn namespace, and in order to understand what I am reading, I would like to give an example of a complete command if shortcuts were not made. For example,
$('p').click(function() { console.log('click'); });
Could this be rewritten with .fn in it somewhere? What will be the comprehensive syntax?
jQuery('p',document).fn.click(function() { window.console.log('click'); });
jquery
Phillip senn
source share