I have checkbox set with Category Subcategorywise...
Company
Microsoft
Apple
Country
USA
UK
and checkbox attached to each item. So if I click on checkbox next to Company, then it should automatically mark checkboxes next to Microsoft and Apple checked, like wise if I select Country, it should check the options USA and UK. and there should also be a select all option, which should select all of them.
Is it possible to add checkbox check property using javascript or jquery ?
<input type="checkbox" class="entityCheckboxHeader1" id="entityCheckboxHeader" name="Company">Company
<input id="modalEntity" class="entity1" type="checkbox" name="CompanySub">Microsoft
<input id="modalEntity" class="entity2" type="checkbox" name="CompanySub">Apple
<input type="checkbox" class="entityCheckboxHeader2" id="entityCheckboxHeader" name="Country">Country
<input id="modalEntity" class="entity3" type="checkbox" name="CountrySub">USA
<input id="modalEntity" class="entity4" type="checkbox" name="CountrySub">UK