Note that there are some explanatory texts on larger screens.

plurals
  1. POReading the selected value from asp:RadioButtonList using jQuery
    text
    copied!<p>I've got code similar to the following...</p> <pre><code>&lt;p&gt;&lt;label&gt;Do you have buffet facilities?&lt;/label&gt; &lt;asp:RadioButtonList ID="blnBuffetMealFacilities:chk" runat="server"&gt; &lt;asp:ListItem Text="Yes" Value="1"&gt;&lt;/asp:ListItem&gt; &lt;asp:ListItem Text="No" Value="0"&gt;&lt;/asp:ListItem&gt; &lt;/asp:RadioButtonList&gt;&lt;/p&gt; &lt;div id="HasBuffet"&gt; &lt;p&gt;&lt;label&gt;What is the capacity for the buffet?&lt;/label&gt; &lt;asp:RadioButtonList ID="radBuffetCapacity" runat="server"&gt; &lt;asp:ListItem Text="Suitable for upto 30 guests" value="0 to 30"&gt;&lt;/asp:ListItem&gt; &lt;asp:ListItem Text="Suitable for upto 50 guests" value="30 to 50"&gt;&lt;/asp:ListItem&gt; &lt;asp:ListItem Text="Suitable for upto 75 guests" value="50 to 75"&gt;&lt;/asp:ListItem&gt; &lt;asp:ListItem Text="Suitable for upto 100 guests" value="75 to 100"&gt;&lt;/asp:ListItem&gt; &lt;asp:ListItem Text="Suitable for upto 150 guests" value="100 to 150"&gt;&lt;/asp:ListItem&gt; &lt;asp:ListItem Text="Suitable for upto 250 guests" value="150 to 250"&gt;&lt;/asp:ListItem&gt; &lt;asp:ListItem Text="Suitable for upto 400 guests" value="250 to 400"&gt;&lt;/asp:ListItem&gt; &lt;/asp:RadioButtonList&gt;&lt;/p&gt; &lt;/div&gt; </code></pre> <p>I want to capture an event when the radio list blBuffetMealFacilities:chk changes client side and perform a slide down function on the HasBuffet div from jQuery. What's the best way to create this, bearing in mind there are several similar sections on the page, where I want questions to be revealed depending on a yes no answer in a radio list.</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