How can I say if you click on checkbox2 or checkbox3 and select one of them, then force checkbox1 to be selected as well
$('input:checkbox').click(function() {
if ($(this).attr('class') == 'checkbox2' || $(this).attr('class') == 'checkbox3')
{
if($(this).attr('checked',true))
{
$(this).parent().....
}
}
});
<TD>
<div class='checkboxes'>
<LABEL style="white-space: nowrap;">
<INPUT type="checkbox" name="user_registered[8253]" value="36" class="checkbox1" >
</LABEL><BR>
<LABEL style="white-space: nowrap;">
<INPUT type="checkbox" name="user_registered[8253]" value="14" class="checkbox2" >
</LABEL><BR>
<LABEL style="white-space: nowrap;">
<INPUT type="checkbox" name="user_registered[8253]" value="14" class="checkbox3" >
</LABEL><BR>
</div>
</TD>
<TD>
<div class='checkboxes'>
<LABEL style="white-space: nowrap;">
<INPUT type="checkbox" name="user_registered[8251]" value="36" class="checkbox1" >
</LABEL><BR>
<LABEL style="white-space: nowrap;">
<INPUT type="checkbox" name="user_registered[8251]" value="14" class="checkbox2" >
</LABEL><BR>
<LABEL style="white-space: nowrap;">
<INPUT type="checkbox" name="user_registered[8251]" value="14" class="checkbox3" >
</LABEL><BR>
</div>
</TD>