File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply 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: 1254
I am getting a js error "Expecting ':' on highlighted code.

Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56180
    
  13

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

Use quotes.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Steve Dyke
Ranch Hand

Joined: Nov 16, 2004
Posts: 1254
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://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Getting Error in JS Jquery Code
 
Similar Threads
missing name after . operator ?
Accessing hidden field
Safari - TypeError on first submit
Struts2Jquery deleting row in a grid
How To Reference a Dynamic DOM Object From JS