日期:2014-05-16 浏览次数:20620 次
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title></title>
<script type="text/javascript" src="script/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$("#add").append("<input id='test' type='text' value=''/>");
});
function AddValue()
{
$("#test").val("测试值");
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div id="add">
<input type="submit" value="测试" onclick="AddValue();"/>
</div>
</form>
</body>
</html>