[thelist] JS alerts not working for input type=radio buttons

Sharon F. Malone sfmalo at 24caratdesign.com
Fri Feb 22 09:00:01 CST 2002


Been up all night working on something else. Thanks, Yuriy. After I get some sleep I'll try your code out.

Sharon (<8

From: "Yuriy" <work at avg-team.com>

> Hello Sharon,
>
> Friday, February 22, 2002, 4:05:32 PM, you wrote:
>
> As i understand you need something like this:
>
> <html>
> <head>
> <script language=javascript>
> function test() {
> if (document.forms[0].radio_1.status==true) alert ("hey-ho!");
> else alert ("nope");
> }
> </script>
> </head>
> <body onClick="javascript:test();">
> <form>
> <input type=radio name="radio_1">
> </Form>
> </body>
> </html>
>
> if this will not help, let me know :-).
---------------------------------------------------------------------------
Sharon F. Malone
"web design and Internet writing services"
http://www.24caratdesign.com
sfmalo at 24caratdesign.com
>




More information about the thelist mailing list