[英]How do I hide all the checkboxes in jQgrid?
我需要隐藏jQgrid上的所有复选框,并在阅读以下两篇文章之后:
这是我所做的:
// this only hides the first checkbox on the header
$('#gbox_grid_notification_queue').find('input[type="checkbox"]').hide();
// this does not hide anything at all
$('#gbox_grid_notification_queue').find('td input[type="checkbox"]').hide();
// this does not hide anything, same as previous one
var grid_notification_queue = $("#grid_notification_queue");
$("#cb_" + grid_notification_queue.id).hide();
我在这里想念的是什么?
您可以使用此代码
$("input[type=checkbox]").each(function() {
$(this).hide();
});
尝试这个:
$('#gbox_grid_notification_queue').find('input[type="checkbox"]').each(function(){
$(this).hide();
});
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.