Hi all,
I have a table to which an array of cloned checkboxes can be dropped in (using scriptabulous). Could someone please tell me how I can get a list of all populated cells, and which checkboxes within each cell are checked (wuth their dynamically assigned values). For example:
cell 5 => condition 2 selected => box1, box3 checked
cell 9 => condition 1 selected => box4 checked
P.S: Below are relevant(?) snippets of my code.
Thanks!
TABLE (THE TARGET)
[HTML]<table style="text-align: center;" border="2"
cellpadding="2" cellspacing="2" ">
<tbody>
<tr>
<td style="width: 150px; height: 100px;">
<div id="cell1">A1<b r>
Empty</div>
</td>
<td style="width: 150px; height: 100px;">
<div id="cell2">A2<b r>
Empty</div>
</td>
</tr>
<tr>
<td style="width: 150px; height: 100px;">
<div id="cell3">B1<b r>
Empty</div>
</td>
<td style="width: 150px; height: 100px;">
<div id="cell4">B2<b r>
Empty</div>
</td>
</tr>
</tbody>
</table>
[/HTML]
DRAGGABLE CHECKBOXES
[HTML]<div id="l1">
<select name="condition s_list" id="selectField " onChange="updat eValue();">
<option value=""></option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
</select>
<br>
<span class="style1">
<span class="style5">
<span style="color: rgb(255, 0, 0);">BOX1</span>
<input id="box1" name="box1[]" value="" type="checkbox" >
<span style="color: rgb(255, 0, 0);">BOX2</span>
<input id="box2" name="box2[]" value="" type="checkbox" ><br>
<span style="color: rgb(255, 0, 0);">BOX3</span>
<input id="box3" name="box3[]" value="" type="checkbox" >
<span style="color: rgb(255, 0, 0);">BOX4</span>
<input id="box4" name="box4[]" value="" type="checkbox" >
</span>
</span>
</div>[/HTML]
I have a table to which an array of cloned checkboxes can be dropped in (using scriptabulous). Could someone please tell me how I can get a list of all populated cells, and which checkboxes within each cell are checked (wuth their dynamically assigned values). For example:
cell 5 => condition 2 selected => box1, box3 checked
cell 9 => condition 1 selected => box4 checked
P.S: Below are relevant(?) snippets of my code.
Thanks!
TABLE (THE TARGET)
[HTML]<table style="text-align: center;" border="2"
cellpadding="2" cellspacing="2" ">
<tbody>
<tr>
<td style="width: 150px; height: 100px;">
<div id="cell1">A1<b r>
Empty</div>
</td>
<td style="width: 150px; height: 100px;">
<div id="cell2">A2<b r>
Empty</div>
</td>
</tr>
<tr>
<td style="width: 150px; height: 100px;">
<div id="cell3">B1<b r>
Empty</div>
</td>
<td style="width: 150px; height: 100px;">
<div id="cell4">B2<b r>
Empty</div>
</td>
</tr>
</tbody>
</table>
[/HTML]
DRAGGABLE CHECKBOXES
[HTML]<div id="l1">
<select name="condition s_list" id="selectField " onChange="updat eValue();">
<option value=""></option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
</select>
<br>
<span class="style1">
<span class="style5">
<span style="color: rgb(255, 0, 0);">BOX1</span>
<input id="box1" name="box1[]" value="" type="checkbox" >
<span style="color: rgb(255, 0, 0);">BOX2</span>
<input id="box2" name="box2[]" value="" type="checkbox" ><br>
<span style="color: rgb(255, 0, 0);">BOX3</span>
<input id="box3" name="box3[]" value="" type="checkbox" >
<span style="color: rgb(255, 0, 0);">BOX4</span>
<input id="box4" name="box4[]" value="" type="checkbox" >
</span>
</span>
</div>[/HTML]
Comment