Essentially the check all button works. But some of the fields are prone to be disabled depending on part of the data.
How would I go about using the select all, to not select the ones that are not disabled?
PHP Code:
if ($rows > 0) { ?> <input type="checkbox" disabled="disabled" name="chkbxSelected[]" id="list" value="<?php echo $row['id'] ?>"/> <?php } else { ?> <input type="checkbox"name="chkbxSelected[]" id="list" value="<?php echo $row['id'] ?>"/> <?php } ?>
Code:
function checkAll(field)
{
for (i = 0; i < field.length; i++) {
if(!field[i].disabled) {
field[i].checked = true;
}
}
}
--> solved never mind. <--
__________________
"Good News Everyone, by reading this your hearing my voice."
Last edited by Red_X_; 07-28-2010 at 05:10 PM..
Reason: bold text is added text.
|