This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Getting Error in JS Jquery Code Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Getting Error in JS Jquery Code" Watch "Getting Error in JS Jquery Code" New topic
Author

Getting Error in JS Jquery Code

Steve Dyke
Ranch Hand

Joined: Nov 16, 2004
Posts: 1533
    
    1
I am getting a js error "Expecting ':' on highlighted code.

Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 63053
    
  69

background-color is not a valid identifier -- remember that - is the subtraction operator.

Use quotes.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Steve Dyke
Ranch Hand

Joined: Nov 16, 2004
Posts: 1533
    
    1
Bear Bibeault wrote:background-color is not a valid identifier -- remember that - is the subtraction operator.

Use quotes.


Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Getting Error in JS Jquery Code
 
It's not a secret anymore!