On 10/10/06, Glen Lipka <[EMAIL PROTECTED]> wrote:
> I tried to make it
> jQuery("<link>")
> but that didn't seem to work (was looking in IE). The other one with
> jQuery(document.createElement("link") did work.
>
> What is the difference between jQuery() and $(). Why should you use one
> over the other?
If you are writting a plugin or patch, then jQuery() should be used.
However, in your own scripts you are encouranged to use the
shorcut/alias $. This makes it easy to change the $ alias to something
else if needed.
--
Brandon Aaron
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/