jQuery(selector) or $(selector), which one?

Posted by Martti Laine on Stack Overflow See other posts from Stack Overflow or by Martti Laine
Published on 2010-03-20T13:56:08Z Indexed on 2010/03/20 14:01 UTC
Read the original article Hit count: 527

Hello

Which is better way to use jQuery? I've heard that jQuery(element) doesn't ruin code in e.g. Wordpress. But $ is easier and faster to write.

Which one do you prefer and why?

Martti Laine

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about jquery-selectors