i`m sory but yes i need more specified to put the onclick action i had tried my code but onCLick not working
here the java script i ues
function check(ctrl)
{
//get the state of the check box
if (ctrl.checked == true) {
document.all['moreInfo'].style.display = "inline";
} else {
document.all['moreInfo'].style.display = "none";
}
}
this the table that contain the id of java script call
function check(ctrl)
{
//have you tried with alert ?
alert('worked');
//get the state of the check box
if (ctrl.checked == true) {
document.all['moreInfo'].style.display = "inline"; //use document.getElementById(id);
} else {
document.all['moreInfo'].style.display = "none";
}
}
<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>
<body>
<input type="radio" name="Toggledivs" />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 />
<br /><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>