Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Since i wanted solution using the exact HTML show in my question. SO i found a solution which is as</p> <pre><code>&lt;script language="javascript" type="text/javascript"&gt; $(document).ready(function () { $('#RadioDiv input').click(function () { $("#info").text('Selected Value: ' + $("#RadioDiv input:radio:checked").val()); if ($("#RadioDiv input:radio:checked").val() == 0) { document.getElementById('Restaurent').style.display = "none"; } else { document.getElementById('Restaurent').style.display = ""; } }); }); &lt;/script&gt; </code></pre> <p>HTML CODE BELOW</p> <pre><code>&lt;div id="RadioDiv"&gt; &lt;asp:RadioButtonList ID="ckbRestaurent" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow" &gt; &lt;asp:ListItem selected="true" Value="0"&gt;No&lt;/asp:ListItem&gt; &lt;asp:ListItem Value="1"&gt;Yes&lt;/asp:ListItem&gt; &lt;/asp:RadioButtonList&gt; &lt;/div&gt; &lt;table class="style1"&gt; &lt;tr&gt; &lt;td &gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt;&lt;td &gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/br&gt; &lt;div id="Restaurent" style="display:none" &gt; &lt;!-- Details Group Restaurent Table --&gt; &lt;table cellpadding="0" cellspacing="0" class="tableDetailsGroupOne"&gt; &lt;tr&gt; &lt;td class="tableDetailsGroupOneLabel"&gt;Restaurant One:&lt;/td&gt; &lt;td&gt; &lt;asp:TextBox ID="txtRestaurentOne" runat="server" CssClass="txtNameOfHotel"&gt;Restaurent One&lt;/asp:TextBox&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="tableDetailsGroupOneLabel"&gt;Restaurent Two:&lt;/td&gt; &lt;td&gt; &lt;asp:TextBox ID="txtRestaurentTwo" runat="server" CssClass="txtNameOfHotel" &gt;&lt;/asp:TextBox&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/div&gt; &lt;!-- Details Group Restaurent Table END--&gt; </code></pre> <p>I also appreciate other user who also replied to my question, since i wanted solution using for ASP.NET server control.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload