i generally use single quotes unless i'm explicitly setting a string.
so..

var foo = "the quick brown fox...";

but when inside of parentheses, i always wrap strings in single quotes.

On Fri, Nov 28, 2008 at 1:28 PM, Bill <[EMAIL PROTECTED]> wrote:

>
> I've wondered about this myself. I seem to go back and forth between
> the two without any rhyme or reason. Looking forward to more responses
> on this thread.
>
> On Nov 28, 1:51 pm, "Andy Matthews" <[EMAIL PROTECTED]> wrote:
> > Yes. I am. Plus single quoting is slightly faster due to it's "lower
> case"
> > nature. No need to hold down the shift key.
> >
> > -----Original Message-----
> > From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
> >
> > Behalf Of seasoup
> > Sent: Friday, November 28, 2008 2:47 PM
> > To: jQuery (English)
> > Subject: [jQuery] quote standards
> >
> > I've started using a single quote inside of all $() when quotes are
> needed
> > because it makes creating DOM elements much simpler. $('<a
> > href="/path"></a>') or $('<div id="anId"></div> and for consistency
> > doing $('#anId').   Anyone else doing the same thing?
> >
> > Josh Powell




-- 
I have failed as much as I have succeeded. But I love my life. I love my
wife. And I wish you my kind of success.

Reply via email to