ajax输出的数据,如何让另外一个页面获取到。如何通过表单提交获取到的chk的值。
本帖最后由 qq914260102 于 2013-10-16 10:16:03 编辑
上面页面保存为test.php
请问如何在ser.php 获取到id=“chk”输出的内容。。
需要在test.php页面加入什么内容,在ser.php怎么才能获取到。
<script type="text/javascript"><br>
$(function(){<br>
<br>
$("#title").blur(function(){<br>
<br>
$.ajax({<br>
<br>
url:"check.php", <br>
type:"GET", <br>
data:"title="+$("#title").val(), <br>
success: function(data)<br>
{ <br>
$("#chk").html(data); <br>
}<br>
<br>
});<br>
})<br>
<br>
})<br>
</script><br>
<br>
<table><br>
<form id="reg" name="form1" method="post" action="ser.php" ><br>
<tr><br>
<td >标题内容:</td><br>
<td ><input type="text" name="title" id="title"/></td><br>
</tr><br>
<br>
<tr><br>
<td >通过输出标题后获取的的:</td><br>
<td id="chk"></td><br>
</tr><br>
</form>上面页面保存为test.php
请问如何在ser.php 获取到id=“chk”输出的内容。。
需要在test.php页面加入什么内容,在ser.php怎么才能获取到。
分享到:









