I was convinced that this was some kind of faster, special-er variable
just for jQuery objects. Thanks to everyone on this thread for
clarifying.
> If the value is numeric, which it is in this case, I wouldn't use the
> $ or j. I only use $variableName when the value is a jQuery object.
Interesting. That was quite a while ago... :)
Thanks, Karl!
On 3 Jul., 15:55, Karl Swedberg wrote:
> On Jul 3, 2009, at 3:48 AM, olsch01 wrote:
>
>
>
> > I also read about using $ or j if you're variable stores a jQuery
> > object.
>
> > Maybe this might sound stupid, but what if you first do
On Jul 3, 2009, at 3:48 AM, olsch01 wrote:
I also read about using $ or j if you're variable stores a jQuery
object.
Maybe this might sound stupid, but what if you first do something like
this:
var $showFeedback = $('#showFeedback' +spanIdNo);
(or var jShowFeedback = $('#showFeedback' +span
you can just type
> > > > > $.
>
> > > > > cheers
>
> > > > > Michael Lawson
> > > > > Development Lead, Global Solutions, ibm.com
> > > > > Phone: 1-276-206-8393
> > > > > E-mail: mjlaw...@us.ibm.com
>
ould test gold. If
> > > > you
> > > > find they make sense, conform to your experience, and don't harm
> > > > yourself
> > > > or others, only then should you accept them.'
>
> > > > From: waseem sabjee
> > >
> > you
> > > find they make sense, conform to your experience, and don't harm yourself
> > > or others, only then should you accept them.'
>
> > > From: waseem sabjee
> > >
se, conform to your experience, and don't harm yourself
> > > or others, only then should you accept them.'
>
> > > From: waseem sabjee
> > >
>
> > >
accept them.'
>
> > From: waseem sabjee
> >
>
> > To: jquery-en@googlegroups.com
> >
;
>
> To: jquery-en@googlegroups.com
>
>
> Date: 07/02/2009 02:26 PM
>
>
> Subject: [jQuery] Re: var
-en@googlegroups.com
Date: 07/02/2009 02:26 PM
Subject: [jQue
its not really a jquery variable
in standard js you can say
var $myvar = "hello";
and
var myvar = "hello";
both will work the same
you can access jquery using either the $ or JQuery
like
$("#myid").hide();
JQuery("#myid").hide();
in a line of the JQuery library code you would see something l
11 matches
Mail list logo