user127181
user127181

Reputation: 743

Simple javascript Question (not simple for me)

Can someone please correct my code here. It works well in most browsers but I get an error in ie7. I'm sure it's a syntax thing:

 <script type="text/javascript">
$(document).ready(function() {
$(".testimonail-label").addClass("-webkit-animation");
$(".banner h2").addClass("-webkit-animation");
$(".banner .test-name").addClass("-webkit-animation");    
};

Upvotes: -1

Views: 84

Answers (2)

Pieter Jongsma
Pieter Jongsma

Reputation: 3373

You forgot a ')'

 <script type="text/javascript">
$(document).ready(function() {
$(".testimonail-label").addClass("-webkit-animation");
$(".banner h2").addClass("-webkit-animation");
$(".banner .test-name").addClass("-webkit-animation");    
});

Upvotes: 2

Jacob Relkin
Jacob Relkin

Reputation: 163248

On the last line you forgot to close out the call to ready:

};

should be

});

Upvotes: 1

Related Questions