<% foreach (var i in (IEnumerable<MvcApplication1.Models.Group>)ViewData["Group"])
{ %>
<input type="checkbox" name="Inhoud" value="<%= i.int_GroupId %>" /> <%= i.vcr_GroupName %><br /><br />(Checkboxes here)
<% foreach (var ik in (IEnumerable<MvcApplication1.Models.Feature>)ViewData["Feature"])
{ %>
<input type="checkbox" name="Inhoud" value="<%= ik.int_FeatureId %>" /> <%= ik.vcr_FeaturesName %><br /> (Checkboxes here)
<% } %>
<br />
<% } %>
I have created this now the thing is that when I click on any parent with parentid=0 .all its child should automatically be clicked with parentid >0 but not viceversa.How would I do it in jquery? (Like i CLICK ON SOME FEATURE Manage User its child Add user ,edit and delete user should be clicked automatically ) but if i click on add user nothing should happened