Ajaxを使用してログインを検索したいので、ページを更新する必要はありません.jqueryイベントを使用するコードはここにありますが、機能しません:(
$(document).ready(function(){
$("#login").keyup(submitForm);
});
function submitForm()
{
var xhr= new XMLHttpRequest();
xhr.onreadystatechange=function()
{
if (xhr.readyState==4 && xhr.status==200)
{
document.getElementById("zone").innerHTML=xhr.responseText;
}
}
var str="SearchLogin.php?login="+document.getElementById("login").value;
xhr.open("GET",str,true);
xhr.send();
}
感謝します