/**
* 清除表格内容(保留表头)
*/
function clearTr(){
//清除表格节点内容(不包含表头)
$("#roleInfo .c666").nextAll().each(function(i){
$(this).remove();
});
}
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0" style="margin: auto;">
<tr>
<td height="35" align="left" bgcolor="#EAF4EA" style="padding-left:10px; /*display: none;*/ ">
<input id="role_seach_txt" type="text" style="width:150px; height:19px;" />
<input id="role_seach_btn" type="button" value="搜索" style="background:url(../img/btn_search.gif); width:57px; height:25px; border:0;" />
</td>
<td width="35%" height="35" align="left" bgcolor="#EAF4EA" style="padding-left:10px;">
<input id='toolbar_btn_add' name="toolbar_btn_add" type="button" value ="添加" class="btn_666"/>
<input id='toolbar_btn_mod' name="toolbar_btn_mod" type="reset" value="修改" class="btn_666"/>
<input id='toolbar_btn_del' name="toolbar_btn_del" type="button" value="删除" class="btn_666"/>
</td>
</tr>
</table>
<br>
<table id="roleInfo" width="95%" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#D7E6CC" style="margin: auto; font-size: 12px;">
<tr class="c666">
<th height="20" width="2%" align="left" bgcolor="#F2F9F2">序号</th>
<th width="10%" bgcolor="#F2F9F2">角色编号</th>
<th width="10%" bgcolor="#F2F9F2">角色名称</th>
</tr> </table>
分享到:
相关推荐
超好用的jquery插件,可以让表头固定 ,几乎兼容所有浏览器
jQuery冻结表头、列
这个是基于jquery库实现表头固定的一个例子,这样在页面上可以使我们做的表格更加直观
一个用于生成多层复杂表头的jquery插件,可以进行表头和数据的动态生成,动态筛选以及一定的统计分析功能。
Jquery table固定表头,固定列,全浏览器兼容 Jquery table固定表头,固定列,全浏览器兼容
jquery 冻结表头的代码。 我试过了,很好用。
jQuery实现表头固定表格内容滚动效果 jQuery实现表头固定表格内容滚动效果
用JQuery写的固定表头插件,供大家一起共同分享学习。
基于Jquery的前台按表头排序table tr th
jquery table 表头固定 列固定 完美解决方案
jquery 固定表头和列,有html和js代码,一个固定表头和列的例子
JQuery固定表头 及左侧列
JQuery DoM和ajax 操作大全源码
这是一个可以固定表头的jQuery插件。当表格向下滚动时,表头不会跟着动。兼容IE6.7.8.9 ,Chrome ,FF 国外的
自己精心收藏的界面设计相关的帮助文档,希望能帮助到大家,内附jQuery1.8+CSS3+DOM+HTML4共计4个帮助文档。
利用css和jquery实现table表头固定(浮动)显示,不复制表格内容,不更改页面元素,完全通过js设置样式来实现。
本人原创:jquery 快速学(二.Dom操作),本教程易学易懂,详细明了。 注意:如果解压本压缩包出现问题请下载好压进行解压,不方便之处敬请原谅!
jquery 表格插件表头标题固定在顶部表格内容拖动显示
jquery学习资料jQuery DOM的操作jQuery插件源码jQuery插件等资料: jQuery DOM教辅.pdf jQuery DOM源码 jQuery DOM的操作.pdf jQuery 丰富的插件.pdf jQuery 事件的处理.pdf jQuery 元素选择器参考手册(教辅) .pdf ...
jquery api,easyui api ,ajax api ,dom api,highchart demo,网络初学者首选