- Code: Select all
function showFields2<?php echo $rowID['checklist_id'];?>(status) {
var ID = '<?php echo $rowID[checklist_id]?>';
if (status == 0) {
document.getElementById('checklistlistID').style.display="none";
} else {
document.getElementById('checklistlistID').style.display="";
}
}
- Code: Select all
<input class="button" name="checklistEdit" type="button" value="Edit" onClick="showFields2<?php echo $rowChecklist['checklist_id'];?> ('0');" />
- Code: Select all
while ($rowChecklist = mysql_fetch_array($resultChecklist))
{
<table width="100%" border="0" cellspacing="2" cellpadding="2" id="checklistlist<?php echo $rowChecklist['checklist_id'];?>">
<tr>
<td><?php echo $rowChecklist['checklist_name']; ?></td>
</tr>
</table>
}
So, I don't know how to make it runs, to differentiate <table id> in while loop & call different javascript function based on ID


