How to find and check all dynamic child checkboxes in tree using jquery?

后端 未结 3 2002
滥情空心
滥情空心 2021-01-14 13:36

I have added check-boxes dynamically to all the element and successfully added the functionality to select all checkboxes but not able to do the selection for the parent chi

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-14 13:45

    try something along these lines:

    $this.children('input[type="checkbox"]').prop('checked', true);
    

提交回复
热议问题