Mehram says:
<
script
>
function toggle(ele) {
var cont = document.getElementById('cont');
if (ele.checked) {
cont.style.display = 'block';
} else {
cont.style.display = 'none';
}
}
</
script
>
Since you are using master page you have to use ClientID in getElementById function. Replace with below code.
<script>
function toggle(ele) {
var cont = document.getElementById('<%=cont.ClientID%>');
if (ele.checked) {
cont.style.display = 'block';
} else {
cont.style.display = 'none';
}
}
</script>