radio button show and hide DIV
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml”>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″ />
<title>Untitled Document</title>
<style type=”text/css”> #Div1, #Div2, #Div3 { display: none; } </style>
<script type=”text/javascript”>
function Toggle(theDiv) {
document.getElementById(“Div1″).style.display = “none”;
document.getElementById(“Div2″).style.display = “none”;
document.getElementById(“Div3″).style.display = “none”;
document.getElementById(theDiv).style.display = “block”;
}
</script>
</head>
<body>
<input type=”radio” name=”ToggleDivs” onclick=”Toggle(‘Div1′);” >Turn on Div 1<br >
<input type=”radio” name=”ToggleDivs” onclick=”Toggle(‘Div2′);” >Turn on Div 2<br >
<input type=”radio” name=”ToggleDivs” onclick=”Toggle(‘Div3′);” >Turn on Div 3<br >
<div id=”Div1″>I am the content of Div 1</div>
<div id=”Div2″>I am the content of Div 2</div>
<div id=”Div3″>I am the content of Div 3</div>
</body>
</html>















