Brandon Aaron schrieb:
> 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.
>
I'd say: Use $ whenever you want to prototype something, fast. But as
soon as you are starting to write your code as plugins, use jQuery
instead, as that guarantees you compatibilty with other librarys that
rely on the $ alias.
-- Jörn
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/