hello
i want on linkbutton client click if dropddown value == Post then div should hide else it should visible
please advice through javascript
<asp:DropDownList ID="DropDownList1" runat="server">
<asp:ListItem>Standard</asp:ListItem>
<asp:ListItem>Post</asp:ListItem>
</asp:DropDownList>
<div id="dvhours">
this is my hours
</div>
<asp:LinkButton ID="LinkButton4" runat="server" Style="display: none" OnClientClick="myFunction()"></asp:LinkButton>
<script>
function myFunction() {
var x = document.getElementById("dvhours");
if (x.style.display === "none") {
x.style.display = "block";
} else {
x.style.display = "none";
}
}
</script>