you have to do this only
This is your javascript function
<script type="text/javascript">
function hideorshow(s) {
debugger;
if (s == 'Show') {
// var rdbs = document.getElementById("rdbShow").checked;
// var rdbh = document.getElementById("rdbHide").checked;
// if (rdbs == true) {
document.getElementById('d1').style.display = "block";
document.getElementById('rdbHide').checked = false;
}
if (s == 'Hide') {
document.getElementById('d1').style.display = "none";
document.getElementById('rdbShow').checked = false;
}
return false;
}
</script>
see i added "
return false; at the end of the function.
and
<input type="radio" onclick="return hideorshow('Show');" id="rdbShow" value="Show" />