jQuery error in Internet Explorer

One cause of error at least.

Watch for stray commas at the end of an array.

For example :

[code] var array = [ ‘zero’, ‘one’, ‘two’, ‘three’, ‘four’,  ]; [/code]

That comma after ‘four’ will be silent in most browsers. In Internet Explorer (lower than 8 at least), this will throw an error.

 

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: