Community wiki. At least I think it's worthy of that. I've always been interested in some of the inner workings of jQuery, and a great question prompted this.
I'm not talking about cool stuff you can do with jQuery but more subtleties of how it works. Maybe links to helpful posts could come in here.
One example is that $()
is interchangeable with $(document)
as can be seen from the source:
jQuery.fn = jQuery.prototype = {
init: function( selector, context ) {
// Make sure that a selection was provided
selector = selector || document;
Any more?