i have code for jquery like this
HTML :
<table class="display">
<tr>
<td style="vertical-align:top;">
<table class="display">
<thead>
<tr>
<td><label><input type="checkbox" class="menu_3"/> menu 3</label></td>
</tr>
</thead>
</table>
<table class="display table-hover">
<tbody>
<tr>
<td><label><input type="checkbox" class="submenu_3"/> submenu 3</label></td>
</tr>
<tr>
<td><label><input type="checkbox" class="submenu_3"/> submenu 3</label></td>
</tr>
</tbody>
</table>
</td>
</td>
</tr>
</table>
JQUERY
for(i=1;i<=6;i++){
$(".menu_"+i).change(function(){
$(".submenu_"+i).attr("checked", this.checked);
});
}
i want to check menu 3
, then all submenu 3
checked too,
and somehow it not works, because i
parameter is missing..
i dont know what is happen..
help me guys..