Home All Groups Group Topic Archive Search About


Author
11 Jul 2006 9:33 AM
amatuer
I have a radio button that i checked depending on a staement. The
problem is that if i want to uncheck it ,it doesnt allow. Is it
possible to uncheck it. heres the code i used for the radio button:
<input type="radio" name="MediaName" value="Others" <% If tel1=tel2
Then %> Checked<% End If %>>

Author
11 Jul 2006 10:04 AM
CJM
"amatuer" <njoo***@gmail.com> wrote in message
news:1152610405.446744.28210@m73g2000cwd.googlegroups.com...
>I have a radio button that i checked depending on a staement. The
> problem is that if i want to uncheck it ,it doesnt allow. Is it
> possible to uncheck it. heres the code i used for the radio button:
> <input type="radio" name="MediaName" value="Others" <% If tel1=tel2
> Then %> Checked<% End If %>>
>


<script language="JavaScript">
<!--
function clear_radio_buttons() {
     for (var i = 0; i < document.form1.MediaName.length; i++) {
          document.form1.MediaName[i].checked = false;
     }
}
//-->
</script>
Author
11 Jul 2006 10:17 AM
amatuer
by the looks of it ,i dnt think this will allow me to uncheck wen the
page is running.or will it?


CJM wrote:
Show quote
> "amatuer" <njoo***@gmail.com> wrote in message
> news:1152610405.446744.28210@m73g2000cwd.googlegroups.com...
> >I have a radio button that i checked depending on a staement. The
> > problem is that if i want to uncheck it ,it doesnt allow. Is it
> > possible to uncheck it. heres the code i used for the radio button:
> > <input type="radio" name="MediaName" value="Others" <% If tel1=tel2
> > Then %> Checked<% End If %>>
> >
>
>
> <script language="JavaScript">
> <!--
> function clear_radio_buttons() {
>      for (var i = 0; i < document.form1.MediaName.length; i++) {
>           document.form1.MediaName[i].checked = false;
>      }
> }
> //-->
> </script>
Author
11 Jul 2006 12:26 PM
CJM
"amatuer" <njoo***@gmail.com> wrote in message
news:1152613045.159580.274190@35g2000cwc.googlegroups.com...
> by the looks of it ,i dnt think this will allow me to uncheck wen the
> page is running.or will it?
>

Yes it will, but you need to call the function somewhere within your page. I
would suggest a standard link.

AddThis Social Bookmark Button