|
| Checkbox checked value |
 |
Thu, 29 Jun 2006 23:31:07 -040 |
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
--
|
| Post Reply
|
| Re: Checkbox checked value |
 |
Thu, 29 Jun 2006 23:36:26 -040 |
On Thu, 29 Jun 2006 23:31:07 -0400, DJ <newsemail@softwarehome.net>
wrote:
> 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
BTW, I am using Opera 9 build 8505 winxp.
--
|
| Post Reply
|
|
|
|
|
|
|
|
|
|