I have a simple html table.
I take one of the cell and change it into a checkbox with the following code:
Stemp = $td.eq(i).text(); // get loaded wanted value
if(Stemp == 1)
$td.eq(i).html('<input type="checkbox" class="btnCHK" checked>');
else
$td.eq(i).html('<input type="checkbox" class="btnCHK">');
The browser displays the cell now as a check box and allows me to change it's value (checked/unchecked).
At time I need to clear the checkbox with code ... here is the issue --- nothing I do will clear a "checked" condition
$td.eq(i).prop('checked', false); ... does not clear check
$td.eq(i).is(':checked'); ... returns false even when the buttons displays being checked
So I thinking that when I created the button manually in code -- something is missing.
Any suggestions?
Thanks.
Joe