jsp 可编辑表格 我想要用JS实现 :点击表格 再点一个按钮 点击的那一行可以编辑(其他不行) 我想要用JS实现: 点击表格 再点一个按钮 点击的那一行可以编辑(其他不行) 弄了很久弄不出啊 请各位大侠帮帮小弟。。很急啊 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 手写了个demo,复制保存到txt,然后改成test.html,运行试试。<head> <script type="text/javascript"> function edit(param){ var tempid = param.id.substring(2,5); document.getElementById(tempid).removeAttribute("disabled"); } </script></head><body> <table> <tr><td><input id="td1" type="text" value="1" disabled="true"></td><td><input id="b1td1" type="button" value="b1" onclick="edit(this);"></td></tr> <tr><td><input id="td2" type="text" value="2" disabled="true"></td><td><input id="b2td2" type="button" value="b2" onclick="edit(this);"></td></tr> <tr><td><input id="td3" type="text" value="3" disabled="true"></td><td><input id="b3td3" type="button" value="b3" onclick="edit(this);"></td></tr> <tr><td><input id="td4" type="text" value="4" disabled="true"></td><td><input id="b4td4" type="button" value="b4" onclick="edit(this);"></td></tr> </table></body> JSP页面中不允许刷新页面 通过request.getRequestDispatcher后 图片显示不正常,css样式也无效,何故呀? jsp查询某个数小数点后面有几位 不知道这样可行不可行! 请指教servlet中request.getParameterMap()时出现的问题 请教:关于注册mssqlserver的jdbc的问题 请问谁了解Apache Jakarta JCS ? 在线求教bean变化,jsp文件不能检测到的问题! 小小的问题,搞定给分 郁闷!!我昨天开始学用JSP。真是倒霉!!散分! 用POI往数据库里导入Excel出现问题.. JSP无法插入数据到mysql数据库
<head>
<script type="text/javascript">
function edit(param){
var tempid = param.id.substring(2,5);
document.getElementById(tempid).removeAttribute("disabled");
}
</script>
</head>
<body>
<table>
<tr><td><input id="td1" type="text" value="1" disabled="true"></td><td><input id="b1td1" type="button" value="b1" onclick="edit(this);"></td></tr>
<tr><td><input id="td2" type="text" value="2" disabled="true"></td><td><input id="b2td2" type="button" value="b2" onclick="edit(this);"></td></tr>
<tr><td><input id="td3" type="text" value="3" disabled="true"></td><td><input id="b3td3" type="button" value="b3" onclick="edit(this);"></td></tr>
<tr><td><input id="td4" type="text" value="4" disabled="true"></td><td><input id="b4td4" type="button" value="b4" onclick="edit(this);"></td></tr>
</table>
</body>