Thursday, December 31, 2009

[jQuery] Re: jQuery + OOP + AJAX

On Dec 31, 4:25 am, fran23 <f...@lavabit.com> wrote:
> the target variable in your sample code has a $-prefix ($target). I think
> this is just an eye-catcher for variables - a similar coding to php. If not
> - if it has to do with something special in Javascript or jQuery - please
> let me know ...

"$" is just a regular character in variable names. Many jQuery users
will use it to visually distinguish variables representing jQuery
collections from DOM elements or other JS variables. Just a reminder
to myself.

-- Scott

No comments: