Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting Error in JS Jquery Code

 
Steve Dyke
Ranch Hand
Posts: 1679
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: 65223
95
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: 1679
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