解决方案 »
- java链接Access 数据库出现问题了,求救。。
- java class反射机制的一些方法
- 请问是什么原因?谢谢
- 急::::(web开发)index.jsp怎样在Action层里实现其中的一个方法,框架是struts2和spring
- struts2中如何实现在struts.xml配置文件的action标签中加入自定义属性?
- Tomcat的一个问题
- 请问如何解析xml?
- 部署出现问题,大家帮忙看看!
- 急!请教熟悉jdom的大虾,为什么在服务器端解析的内容在textArea中显示时多出一个空白行?
- 求hibernate大神帮忙解决,category_id一直没有数据,映射文件如图
- 使用Spring管理hibernate如何实现数据库查询?
- spring JdbcTemplate中的这两个方法,有什么区别呢?
$(document).ready(function(){
<%--全选全不选--%>
$("input[name='checkbox']").click(function(){
if($(this).attr("checked") == true){
$("input[id='single']").attr("checked",$(this).attr("checked"));
}else{
$("input[id'single']").attr("checked",false);
}
});
});
$('#single').bind('click',function(){
if(this.checked){
$('td:checkbox').each(function(i){
$(this).attr('checked',true);
});
}else{
$('td:checkbox').each(function(i){
$(this).attr('checked',false);
});
}
});
思路有很多种,你参考下,不过没有测试。