Hi Ntitish,
Please refer to the below link for doing it using jQuery.
jsfiddle[
^]
This is done in jQuery and can also be done in JavaScript. Let me know if you are only into JS.
<script>
function hideshow(obj) {
if (obj.checked) {
alert('hide');
document.getElementById('<%=PanelEnableMobileNotifications.ClientID %>').style.display = 'none';
}
else {
alert('show');
document.getElementById('<%=PanelEnableMobileNotifications.ClientID %>').style.display = 'inline';
}
}
</script>
And the HTML checkbox code looks like the below
<asp:CheckBox ID="chkReceiveMobileNotification" runat="server" Enabled="true" onclick="hideshow(this)" />
Thank you,
Vamsi