IE8 Errors When Defining A Javascript Object?
I knew IE8 was a pain, but I have never seen it give me such trouble. All I am trying to do is define a Javascript object and it causes an error, stopping all scripting from workin
Solution 1:
Define using appropriate data type by enclosing in quotes, "class"
Solution 2:
It is because class
is a reserved keyword. Try putting quotes around it 'class'
Solution 3:
in addtion to @PickYourPoison answer you can also use this trick:
var atts= {};
atts["class"] = "LOL";
Post a Comment for "IE8 Errors When Defining A Javascript Object?"