我无法检查复选框,只有当我点击行,但我想单击它在两个方面。 这是我的方法,我用:jquery复选框无法点击
$("table tr").click(function(){
var id=$(this).attr("id");
//This is because i dont want first row to be able to select
if(typeof(id)!="undefined"){
if($("#select-"+id).attr("checked")!="checked")
$("#select-"+id).attr("checked","checked");
else
$("#select-"+id).removeAttr("checked");
}
});
而且在这里你可以实时观看它sabrio.eu5.org/admin.php 用户名:admin 密码:admin