I used jQuery many times ago, but always used like this: $(document). Lately i seen many times somebody using jQuery(document), I don’t know difference between them, I thought they are same.
But I have very hard problem now. You know most of jQuery plugin uses $(document) method. Now I have one must use plugin that uses jQuery(document). I must include that, but after included I can’t no longer use $(document) method and plugins which uses it.
How can I solve it?
$is just a short reference to the globaljQueryobject.Most plugin authors make sure that the dollar sign really is referencing the jQuery object, by putting it into a self-invoking method.
By invoking that anonymous method with the
jQueryobject as argument, we can access it within the method via$.