Creation of a Checkbox inside table cell:
Code:
<td>
<input type="checkbox" id="chkbx1" name="Chkbx1" value="Checkbox1">
<label for="chkbx1"> 1</label>
</td>
I am trying to understand is a Checkbox checked or not:
Code:
<script type="text/javascript">
function Click1()
{
var c = document.getElementById("chkbx1").innerHTML;
if (c !== "checked")
{
........
}
}
</script>
Above function does not work the way I expect.
How to correct the function, so it to understand is a Checkbox checked or not ?