[Javascript] Checkbox Problems

Peter Brunone peter at brunone.com
Wed Jul 6 12:15:56 CDT 2005


   Actually, it *does* take a value in a manner of speaking; the checked property is evaluated as either true or false.  Setting myCheckbox.checked = false will uncheck the box.

   Of course just removing the checked parameter before rendering the page will do the job as well...

 From: Andrew Clover and-babble at doxdesk.com

Timothy White wrote:

> if I set the HTML attribute to checked, how can I remove it?
> Remember that it doesn't take a value, so setting it to false
> does nothing.

input.removeAttribute('checked');

-- 
Andrew Clover

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20050706/2c52479a/attachment.htm>


More information about the Javascript mailing list