Hi there jlpl,
and a warm welcome to these forums 
Try this it may suit your purposes...
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>radio switching</title>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
<style type="text/css">
/*<![CDATA[*/
#table1{
width:200px;
border:solid 1px #000;
}
#table1 td {
width:200px;
border:solid 1px #000;
text-align:center;
}
#table2 {
width:300px;
border:solid 1px #000;
display:none;
}
#table2 td {
width:300px;
height:100px;
border:solid 1px #000;
text-align:center;
}
/*//]]>*/
</style>
<script type="text/javascript">
//<![CDATA[
function hideShow(num,id1,id2) {
if(document.forms[0][num].checked==true) {
document.forms[0][num].checked=false;
document.getElementById(id1).style.display="none";
document.getElementById(id2).style.display="block";
}
}
//]]>
</script>
</head>
<body>
<form action="#">
<div>
<input type="radio" checked="checked" onclick="hideShow(1,'table2','table1')"/>
<label> : table one</label>
</div>
<div>
<input type="radio" onclick="hideShow(0,'table1','table2')"/>
<label> : table one</label>
</div>
</form>
<table id="table1"><tr>
<td>this is table one</td>
</tr></table>
<table id="table2"><tr>
<td>this is table two</td>
</tr></table>
</body>
</html>
coothead
Bookmarks