I would very much like to be able to toggle having an x and not having an x in
<td class="checkbox"> <input name="signed" type="checkbox" checked /> x </td>
See JSFiddle for example
http://jsfiddle.net/littlesandra88/GMSCW/
The code that is triggered when Submit is pressed is
$('form').live('submit', function(){
$.post($(this).attr('action'), $(this).serialize(), function(response){
// do something here on success
},'json');
return false;
});
I assume I have to something in the lines of
$(this).getElementByClass("checkbox").td.toggle('x');
But checked
should still be updated in the <input name="signed" type="checkbox" checked />
Does anyone know how to do this?