hello,

no it does not have any added functionality, it's a way to remember that
this variable is caching a jquery object.

var $myObj = $('div.myObj);

$myObj.css({color: 'red'});

it's a good way to optimize your code memory-wise.



Alexandre Plennevaux
LAb[au]

http://www.lab-au.com


On Wed, Aug 20, 2008 at 4:01 PM, mjatharvest <[EMAIL PROTECTED]> wrote:

>
> I've seen jQuery developers use the following syntax when declaring
> variables. Does the $ character help in any way? Does it do anything
> or is it mostly just for convenience.
>
> For example is this:
> var paras = $("p");
>
> better than this:
> var $paras = $("p");
>
> thanks
>

Reply via email to