• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting Error in JS Jquery Code

 
Steve Dyke
Ranch Hand
Posts: 1616
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am getting a js error "Expecting ':' on highlighted code.

 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64618
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
background-color is not a valid identifier -- remember that - is the subtraction operator.

Use quotes.
 
Steve Dyke
Ranch Hand
Posts: 1616
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:background-color is not a valid identifier -- remember that - is the subtraction operator.

Use quotes.


Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic