|
-
Dec 21st, 2001, 02:51 PM
#1
Thread Starter
Addicted Member
Unselect Radio Button
Once a radio button is selected, how can you unselect it without selecting another radio button (no radio buttons should be selected)?
Normal is boring...
 smh 
-
Dec 21st, 2001, 04:46 PM
#2
Hyperactive Member
Code:
<html>
<head>
<title>Test</title>
<script>
function unselect(){
f.sex[0].checked = false
f.sex[1].checked = false}
</script>
</head>
<body>
<form name="f">
Male<INPUT TYPE="radio" NAME="sex">
Female<INPUT TYPE="radio" NAME="sex">
<Input type="Button" value="Unselect" onclick="unselect()">
</form>
</body>
</html>
-
Dec 21st, 2001, 04:49 PM
#3
Thread Starter
Addicted Member
I do not want to use a button to clear the contents though. I want to click the radio button a second time to unselect it.
Normal is boring...
 smh 
-
Dec 21st, 2001, 05:05 PM
#4
Hyperactive Member
HOw could that be possible...
It will trigger the unselect function on clicking the radio..so no one can in effect actually use the radio button...even for the first time.
-
Dec 21st, 2001, 05:08 PM
#5
Thread Starter
Addicted Member
I have found a way to do this, but I will have to post back later, as it is time to get out of the office....
Normal is boring...
 smh 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|