The first one is prefixed with "jQuery" and the second one isn't. I'm guessing those functions prefixed with "jQuery" only apply to the global jQuery, while all the other functions can apply to copies as well. True?
I think we're using different terminology, but it sounds like you have the right idea.
Methods prefixed with "jQuery" are static methods. You don't need an instance of selected elements.
$.ajax(url, settings);
The other methods only work on instances of selected elements.
$(selector).load(url);
On a side note, though, it seems to me that the ajaxComplete method ought to be static. There's really no reason you should need to select elements in order to register an ajax complete callback.
Aha, I'm starting to get it. I'm actually quite at home with "real" OO languages but struggling with JS. So "jQuery" acts as a class and things that it returns ($("#foo")) are instances of the class.
Thanks much.
Originally Posted by Jeff Mott
I think we're using different terminology, but it sounds like you have the right idea.
Methods prefixed with "jQuery" are static methods. You don't need an instance of selected elements.
$.ajax(url, settings);
The other methods only work on instances of selected elements.
$(selector).load(url);
On a side note, though, it seems to me that the ajaxComplete method ought to be static. There's really no reason you should need to select elements in order to register an ajax complete callback.
Bookmarks