Disable all check boxes inside a table with jquery

前端 未结 7 1410
北海茫月
北海茫月 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:05

    See also: selector/checkbox

    jQuery("#hyperlink").click(function() {
      jQuery('#table input:checkbox').attr('disabled', true);
      return false;
    });
    

提交回复
热议问题