登录 | 首页 -> 华新鲜事 -> 社会百科 | 切换到:传统版 / sForum | 树形列表
JSP问题
<<始页  [1]  末页>> 

JSP问题在做个prototype
按一个delete button, 整行都消失, 不连database, 能不能heigh = 0 什么的, 把一行给隐藏了?
[澳洲野狗 (3-16 0:48, Long long ago)] [ 传统版 | sForum ][登录后回复]1楼

why not try client side scripting? instead of JSP?[灌装椰子泪泪 (3-16 2:24, Long long ago)] [ 传统版 | sForum ][登录后回复]2楼

come in=><html>
<head>
<script>
function test()
{
var theTable = document.getElementById("tb");
var remove = theTable.deleteRow(1);
var button = document.getElementById("btn");
button.disabled=true;
}
</script>
</head>
<body>
<table id="tb" border=1>
<tr ><td><input id="btn" type=button value=delete onclick="test();"></td></tr>
<tr><td>this will be deleted</td></tr>
<tr><td>test</td></tr>
</table>
</body>
</html>
[她的妈妈不爱我 (3-16 2:59, Long long ago)] [ 传统版 | sForum ][登录后回复]3楼

(引用 她的妈妈不爱我:come in=> function test() { var theTable = document.getElementById("tb"); var remove = theTable.deleteRow(1); var button = ...)w3shools got a lot examples. a very good websiteshttp://www.w3schools.com[她的妈妈不爱我 (3-16 5:07, Long long ago)] [ 传统版 | sForum ][登录后回复]4楼

(引用 她的妈妈不爱我:w3shools got a lot examples. a very good websiteshttp://www.w3schools.com ...)cool site, thx![澳洲野狗 (3-16 13:38, Long long ago)] [ 传统版 | sForum ][登录后回复]5楼

try tbody for that row! client-side.[websg.net (3-17 12:58, Long long ago)] [ 传统版 | sForum ][登录后回复]6楼


<<始页  [1]  末页>> 
登录 | 首页 -> 华新鲜事 -> 社会百科 | [刷新本页] | 切换到:传统版 / sForum