Disable all check boxes inside a table with jquery

前端 未结 7 1407
北海茫月
北海茫月 2021-01-04 11:09

I need to disable all the check boxes inside a table cell when clicking on a hyperlink inside the same table.

I\'m using the following jquery code to select all the

相关标签:
7条回答
  • 2021-01-04 12:12

    This is my solution

    // Action sur le checkbox
            $("#tabEmployes thead tr th:first input:checkbox").click(function() {
                var checked = $(this).prop('checked');
                $("#tabEmployes tbody tr td:first-child input:checkbox").each(function() {
                    $(this).prop('checked',checked);
                });
            });
    
    0 讨论(0)
提交回复
热议问题