I have a situation where i have to show/Hide DIV TAG based on Checkbox selection. Below is the code example
<asp:RadioButtonList ID="ckbRestaurent" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow" >
<asp:ListItem selected="true" Value="0">No</asp:ListItem>
<asp:ListItem Value="1">Yes</asp:ListItem>
</asp:RadioButtonList>
<div id="xyz"> something.. </div>
I tried several ways but it didn’t work as i am new to jQuery, I would appreciate if someone would give me a working example for the above code .
It should by default hide div on page load and show DIV when user select the YES option in the RadioButtonList
Since i wanted solution using the exact HTML show in my question. SO i found a solution which is as
HTML CODE BELOW
I also appreciate other user who also replied to my question, since i wanted solution using for ASP.NET server control.