hello,
on below checkbox checked i want to show div and unchecked div should hide
please advice
thanks
<script type="text/javascript">
function ShowHideDiv() {
if (document.getElementById('<%=myCheck2.ClientID%>').checked == true) {
document.getElementById('<%=Alert.ClientID%>').style.visibility = 'visible'
}
else {
document.getElementById('<%=Alert.ClientID%>').style.visibility = 'hidden'
}
}
</script>
<span class="enable-btn">Enable Package
<label class="switch">
<input type="checkbox" runat="server" id="myCheck2">
<span class="slider round"></span>
</label>
</span>
<div class="row" id="Alert" runat="server">
</div>