Skip to main content
added 2 characters in body
Source Link
Phillip
  • 5.8k
  • 11
  • 47
  • 64

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:

<script>
 $(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 });});

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:

<script>
 $(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 });

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:

<script>
 $(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 });

Error highlighted
Source Link
Dyrandz Famador
  • 4.5k
  • 6
  • 27
  • 40

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".

"Uncaught SyntaxError: Unexpected end of input".

The JavaScript code I am using is:

<script>
 $(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 });

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:

<script>
 $(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 });

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:

<script>
 $(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 });

Question Protected by CommunityBot
added related tag
Link
falsarella
  • 12.5k
  • 10
  • 74
  • 119
adding related tags
Link
falsarella
  • 12.5k
  • 10
  • 74
  • 119
Loading
deleted 51 characters in body
Source Link
Nakilon
  • 35.2k
  • 16
  • 112
  • 148
Loading
Rollback to Revision 1
Source Link
Nakilon
  • 35.2k
  • 16
  • 112
  • 148
Loading
Rollback to Revision 2
Source Link
Nakilon
  • 35.2k
  • 16
  • 112
  • 148
Loading
deleted 48 characters in body
Source Link
GEOCHET
  • 21.3k
  • 15
  • 78
  • 99
Loading
added 121 characters in body
Source Link
user482375
user482375
Loading
Source Link
user482375
user482375
Loading