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 like
JQuery = window.JQuery = window.$ ...
your could say its like short hand code
instead of saying JQuery("") al the time you can just say $("")
On Thu, Jul 2, 2009 at 8:18 PM, expresso
<dschinkel@...> wrote:
what's the difference between:
var varname
var $varname
obviously I think 2nd is a jQuery variable? If that's the case why
should I care and where is the docs on that?