【发布时间】:2017-06-15 13:47:54
【问题描述】:
我想在单击提交按钮后打开的弹出窗口中显示表单值。单击提交按钮后如何在弹出窗口中显示表单值。我的表格在下面
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
<form name="example" action="" method="post">
<table width="257" border="1">
<tr>
<td>Name</td>
<td><input type="text" name="name" id="name" /></td>
</tr>
<tr>
<td>Father Name</td>
<td><input type="text" value="" name="fname" id="fname" /></td>
</tr>
<tr>
<td colspan="2"><center><input type="submit" name="submit" value="Show Value" /></center></td>
</tr>
</table>
</form>
</body>
</html>
【问题讨论】:
-
在表单提交上调用一些 jquery 并读取表单内容。做一些研究。 api.jquery.com/submit 和 stackoverflow.com/help/how-to-ask
标签: javascript php jquery html ajax