S
shanshanhao
Unregistered / Unconfirmed
GUEST, unregistred user!
页面结构如下:
我想实现下面的功能,在没提交表单之前,如果想删除某条记录,点后面的删除按钮可以直接把该记录条删除,听说用js可以实现,可我查了好半天也没找到,请高手帮助,谢谢!!
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html;
charset=gb2312">
<title>清空</title>
</head>
<body>
<table border="1"
cellpadding="0"
cellspacing="0"
align =center width="697"
>
<form action="sample.asp"
method="post"
name="form1"width="60%">
<tr><td height="18"
>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
姓名</td>
<td height="18"
>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;数据</td>
<td height="18"
>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;日期</td></tr>
<%for i=1 to 5%>
<tr>
<td> <input type="text"
name="username<%=i%>"
value="<%=username%>"></td>
<td> <input type="text"
name="userdata<%=i%>"
value="<%=userdata%>"></td>
<td> <input type="text"
name="sdate<%=i%>"
value="<%=sdate%>"></td>
<td align="center"
colspan="4"><input type="button"
value="
删除 "
></tr>
<tr>
<%next%>
<td><input type="submit"
value="提交数据"></td>
</tr>
</form>
</table>
</body>
</html>
我想实现下面的功能,在没提交表单之前,如果想删除某条记录,点后面的删除按钮可以直接把该记录条删除,听说用js可以实现,可我查了好半天也没找到,请高手帮助,谢谢!!
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html;
charset=gb2312">
<title>清空</title>
</head>
<body>
<table border="1"
cellpadding="0"
cellspacing="0"
align =center width="697"
>
<form action="sample.asp"
method="post"
name="form1"width="60%">
<tr><td height="18"
>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
姓名</td>
<td height="18"
>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;数据</td>
<td height="18"
>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;日期</td></tr>
<%for i=1 to 5%>
<tr>
<td> <input type="text"
name="username<%=i%>"
value="<%=username%>"></td>
<td> <input type="text"
name="userdata<%=i%>"
value="<%=userdata%>"></td>
<td> <input type="text"
name="sdate<%=i%>"
value="<%=sdate%>"></td>
<td align="center"
colspan="4"><input type="button"
value="
删除 "
></tr>
<tr>
<%next%>
<td><input type="submit"
value="提交数据"></td>
</tr>
</form>
</table>
</body>
</html>