52,797
社区成员
发帖
与我相关
我的任务
分享
strong>岗 位 </strong>:
<input type="text" id="qxfp">
<span id="dateMessage1"> </span> <br>
<strong>用户名 </strong>:
<input type="text" id="username" onchange="validate2();"/>
<span id="dateMessage2"> </span> <br>
<script>
function validate2() {
createXMLHttpRequest();
var date1 = document.getElementById("qxfp");
var date2 = document.getElementById("username");
var url2 = "/Palsk/com.yourcompany.struts.action/Validaction?username=" + date2.value+"&qxfp="+date1.value; //url多加个参数而已吗
xmlHttp.open("GET", url2, true);
xmlHttp.onreadystatechange = callback2;
xmlHttp.send(null);
}
</script>