jquery を使用して ajax 呼び出しを行うコードを以下に記述しました。
$.ajax({
url: 'verify.php',
type: 'POST',
data: {
'mobile': 'update'
}
success: function(response) {
if (response == 'success') {
$('#popupscreen').fadeOut('slow');
}
else {
$("#error").html("<p>" + Registration failed! Please try again. + "</p>").show();
}
}
});
エラーUncaught SyntaxError: Unexpected identifier in line success : function(response){が表示され ます なぜこのエラーが表示されるのですか?