I want that onload
the <span>
and <checkbox>
classes to be blank:
<span id="checkboxx_<?php echo $nrs['id']; ?>" class="highlight" >
<input type="checkbox" class="checkboxx" id="checkboxx_<?php echo $nrs['id']; ?>" style="padding: 0px; margin: 2px;" <?php echo $value == 1 ? 'checked="checked"' : ''?>>
</span>
i have tried this
<?php
if($value==1)
{
?>
<script>
if (this.checked) {
document.getElementById("checkboxx_<?php echo $nrs['id']; ?>").className = "";
}
</script>
<?php
} else {
?>
<script>$j("#"+pos).addClass("highlight");</script>
<?php
}
but this doesn't work.