I have a checkbox like this

<input type="checkbox" id="foo" value="1" checked="checked" />

I would expect this code to uncheck it:
$("#foo").val(0); // any value != 1 should uncheck it
and this code to check it
$("#foo").val(1);

It doesn't.

The value attribute of a checkbox is imho not dynamic like a texbox's,
but static, and can only be toggled to on or off.

When manipulating form fields (don't get me started on radio button
sets), jQuery seems to lose its beauty.

Any ideas?

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to