Expected identifier, string or number

20071029480

Error: expected identifier, string or number. Thanks IE, that’s awfully helpful.

class is a reserved word in Internet Explorer. All versions. All trouble. All the time. The fun part is I knew better than to use class as a variable, rather, I was just using it with jQuery’s attr method. IE says no to $("p").attr({ class : "wheee" });. Probably one of several reasons jQuery includes class specific methods like addClass and removeClass.


Skateboards and bikes are better at nights

Skateboards and bikes are better at nights. 0 comments.


Search WayTooCrowded
The Header Should Always Point Home