View Full Version : Deselect Radio Button
CoraLover
04-23-2003, 09:36 PM
Hi, how do i deselect a radio button after it has been selected?
Jason
04-23-2003, 10:27 PM
you select another one, radio buttons are not like check boxes where after you select it you can unselect it.
Jason
cheesebagpipe
04-23-2003, 10:41 PM
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>untitled</title>
</head>
<body>
<form>
<input name="test" type="radio"><br />
<input name="test" type="radio"><br />
<input name="test" type="radio"><br /><br />
<input type="button" value="uncheck 'em" onclick="for(i=0;i<test.length;i++)test[i].checked=false">
</form>
</body>
</html>
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.