Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Checkbox checked value

6 views
Skip to first unread message

DJ

unread,
Jun 29, 2006, 11:31:07 PM6/29/06
to
Try the following test code and tell me if I am crazy. The target.checked
value does not alternate when the checkbox is checked multiple times
rapidly.

<SCRIPT LANGUAGE="JavaScript">
var msg = "";
function flip(target)
{
if (target.checked == true)
{
msg += "True\n";
}
else
{
msg += "False\n";
}
}
</SCRIPT>
<input type="Checkbox" name="test"
onClick="javascript:flip(this);">Test<BR />
<input type="Checkbox" name="done" onClick="javascript:alert(msg);">Done


--
DJ

DJ

unread,
Jun 29, 2006, 11:36:26 PM6/29/06
to

BTW, I am using Opera 9 build 8505 winxp.

--
DJ

laqltkww

unread,
Mar 16, 2011, 10:25:08 AM3/16/11
to
0 new messages