Answers for "uncaught syntaxerror: unexpected end of input"

5

uncaught syntaxerror: unexpected end of input

// Maybe is code is missing "}" or ")"

// EXAMPLE
$(function() {
    $("#mewlyDiagnosed").hover(function() {
        $("#mewlyDiagnosed").animate({'height': '237px', 'top': "-75px"});
    }, function() {
        $("#mewlyDiagnosed").animate({'height': '162px', 'top': "0px"});
    });
MISSING!! // You never closed the outer $(function() {.
Posted by: Guest on March-08-2021
-1

syntaxerror: unexpected end of input

When properly indented, your code reads

$(function() {
    $("#mewlyDiagnosed").hover(function() {
        $("#mewlyDiagnosed").animate({'height': '237px', 'top': "-75px"});
    }, function() {
        $("#mewlyDiagnosed").animate({'height': '162px', 'top': "0px"});
    });
MISSING!
You never closed the outer $(function() {.
Posted by: Guest on March-08-2021

Code answers related to "uncaught syntaxerror: unexpected end of input"

Code answers related to "Javascript"

Browse Popular Code Answers by Language