hemi519
06-08-2011, 05:56 AM
Hi All,
I am struck with javascript functionality. Can any one help me out from the following scenario.
I am having a td where iam getting some names using foreach.
<td align='center'> <input type="checkbox" name="variant[]" id="<? echo $Variant[Name]; ?>" value="<? echo $Variant[Name]; ?>"></td>
iam having three different types of names and iam adding a new row when ever any row is inserted in database. iam checkaa functionality for every column.
column A columnB columnC
checkbox checkbox
checkbox checkbox
checkbox
button1 button 2 button3
the above is my scenario.
all the checkbox i am getting is from the above td i wrote. if i select button1 i should be able to select all the checkboxes under column A. and the same for button2 and button 3. How can i do this.
I am struck with javascript functionality. Can any one help me out from the following scenario.
I am having a td where iam getting some names using foreach.
<td align='center'> <input type="checkbox" name="variant[]" id="<? echo $Variant[Name]; ?>" value="<? echo $Variant[Name]; ?>"></td>
iam having three different types of names and iam adding a new row when ever any row is inserted in database. iam checkaa functionality for every column.
column A columnB columnC
checkbox checkbox
checkbox checkbox
checkbox
button1 button 2 button3
the above is my scenario.
all the checkbox i am getting is from the above td i wrote. if i select button1 i should be able to select all the checkboxes under column A. and the same for button2 and button 3. How can i do this.