私は非常に奇妙なjqueryの問題を抱えています:
if(response==="success") {
alert("I am here");
$('#uploadfile').html('<img src="./uploads/'+file+'" alt="" /><br />'+file);
}
else {
$('#uploadfile').html(response);
//$('#attached1').val("error");
}
このコードでは、応答が等しい場合success
、uploadfile
要素は「成功」を表示します。はalert("I am here")
表示されません。
どうしてか分かりません?上記のコードのエラーは何ですか。