87,904
社区成员
发帖
与我相关
我的任务
分享
<html>
<head>
<script type="text/javascript" src="js/jquery.js"></script> // jquery库没问题
<script language="javascript">
$(document).ready(function(){
$('#dd').load('ajax.php'); // 含有表单
})
function Sub(){
document.form.submit();
alert("df");
}
</script>
</head>
<body>
<div id="dd"></div>
<?php
if($_GET){
$date = $_GET['n']; // 表单中的值
echo "$date";
echo "123";
}
?>
</body>
</html>
<div>
<table>
<form>
<th>
<td>姓名</td>
<td><input type="text" required="required" name="n"/></td>
</th>
<tr><td><input type="button" value="提交" onclick="Sub()"></td></tr>
</form>
</table>
</div>
$("#dataTable tbody").on("click", "tr", function(event){
alert($(this).text());
});
http://www.css88.com/jqapi-1.9/on/