JavaScript Unexpected end of input -


the following code gives me "unexpected end of input" clues?

$('#form1').submit(function(e) {    e.preventdefault();    $.ajax({        type: "post",        url: "form.php",        data: $(this).serialize(),        success: function() {          $('#terminal').load('terminal.php');      }      });  

you need add }); @ end. have mismatch in opening , closing brackets in code.

$('#form1').submit(function(e) {    e.preventdefault();    $.ajax({        type: "post",        url: "form.php",        data: $(this).serialize(),        success: function() {          $('#terminal').load('terminal.php');      }      }) });  

Comments