0

Possible Duplicate:
When to Use Double or Single Quotes in JavaScript

I'm confusing what I should use in jQuery. Some use single some use double quotation mark. For example

$('.class1').removeClass('class1')
$(".class1").removeClass("class1")

Also, alert as well

alert("aa");
alert('aa');

which one is correct?

Community
  • 1
  • 1
Web2py user
  • 73
  • 2
  • 11
  • you must see: [http://stackoverflow.com/questions/3149192/difference-between-single-quotes-and-double-quotes-in-javascript][1] [1]: http://stackoverflow.com/questions/3149192/difference-between-single-quotes-and-double-quotes-in-javascript – 4b0 Nov 12 '11 at 05:03

1 Answers1

1

This is more a matter of preference than correctness. See this question for more details: When to use double or single quotes in JavaScript?

Community
  • 1
  • 1
Adam Wagner
  • 15,469
  • 7
  • 52
  • 66