Debrah
Debrah

Reputation: 107

Javascript error in IE 7

Hoping you can help me... I'm getting the following javascript error in IE7:

Expected Identifier, String, or Number

This is my code:

<script type="text/javascript">
$(function(){
  $('#container').masonry({
    // options
    itemSelector : '.full',
  });
});
</script>

Upvotes: 0

Views: 62

Answers (1)

Anoop
Anoop

Reputation: 23208

remove , from line itemSelector : '.full',.

comma after last key value pair in JavaScript object will through exception in IE 7.

<script type="text/javascript">
$(function(){
  $('#container').masonry({
    // options
    itemSelector : '.full'
  });
});
</script>

Upvotes: 2

Related Questions