I have some JavaScript code that works in FireFox but not in Chrome or IE. In the Chrome JS Console I get the follow error: "Uncaught SyntaxError: Unexpected end of input".
The JavaScript code I am using is (updated code) Sorry miss typed. I get the error with this code:
<script>
//<![CDATA[
$(function() {
$("#mewlyDiagnosed").hover(function() {
$("#mewlyDiagnosed").animate({'height': '237px', 'top': "-75px"});
}, function() {
$("#mewlyDiagnosed").animate({'height': '162px', 'top': "0px"});
});
});
//]]>
</script>
It says the error is on the last line which is });
Any ideas why I would be getting this?
Thanks!