Radio Button

A

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 %>>
 
C

CJM

amatuer said:
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.checked = false;
}
}
//-->
</script>
 
A

amatuer

by the looks of it ,i dnt think this will allow me to uncheck wen the
page is running.or will it?

amatuer said:
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.checked = false;
}
}
//-->
</script>
 
C

CJM

amatuer said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top