Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <p><label>Do you have buffet facilities?</label>
- <asp:RadioButtonList ID="blnBuffetMealFacilities:chk" runat="server">
- <asp:ListItem Text="Yes" Value="1"></asp:ListItem>
- <asp:ListItem Text="No" Value="0"></asp:ListItem>
- </asp:RadioButtonList></p>
- <div id="HasBuffet">
- <p><label>What is the capacity for the buffet?</label>
- <asp:RadioButtonList ID="radBuffetCapacity" runat="server">
- <asp:ListItem Text="Suitable for upto 30 guests" value="0 to 30"></asp:ListItem>
- <asp:ListItem Text="Suitable for upto 50 guests" value="30 to 50"></asp:ListItem>
- <asp:ListItem Text="Suitable for upto 75 guests" value="50 to 75"></asp:ListItem>
- <asp:ListItem Text="Suitable for upto 100 guests" value="75 to 100"></asp:ListItem>
- <asp:ListItem Text="Suitable for upto 150 guests" value="100 to 150"></asp:ListItem>
- <asp:ListItem Text="Suitable for upto 250 guests" value="150 to 250"></asp:ListItem>
- <asp:ListItem Text="Suitable for upto 400 guests" value="250 to 400"></asp:ListItem>
- </asp:RadioButtonList></p>
- </div>
- $('#rblDiv input').click(function(){
- alert($('#rblDiv input').index(this));
- });
- $('.divCollection div:eq(' + $('#rblDiv input').index(this) +')').show();
- $('.rblClass').val();
- $('#RadioButtonList1 input:checked').val()
- var rblSelectedValue = $("#<%= RadioButtonList1.ClientID %> input:checked");
- var deliveryService;
- $('.deliveryservice input').each(function () {
- if (this.checked) {
- deliveryService = this.value
- }
- var shows_6 = function() {
- var selected = $("#q_7 input:radio:checked").val();
- if (selected == 'Groom') {
- $("#s_6").slideDown();
- } else {
- $("#s_6").slideUp();
- }
- };
- $('#q_7 input').ready(shows_6);
- var shows_7 = function() {
- var selected = $("#q_7 input:radio:checked").val();
- if (selected == 'Bride') {
- $("#s_7").slideDown();
- } else {
- $("#s_7").slideUp();
- }
- };
- $('#q_7 input').ready(shows_7);
- $(document).ready(function() {
- $('#q_7 input:radio').click(shows_6);
- $('#q_7 input:radio').click(shows_7);
- });
- <div id="q_7" class='question '><label>Who are you?</label>
- <p>
- <label for="ctl00_ctl00_ContentMainPane_Body_ctl00_ctl00_chk_0">Bride</label>
- <input id="ctl00_ctl00_ContentMainPane_Body_ctl00_ctl00_chk_0" type="radio" name="ctl00$ctl00$ContentMainPane$Body$ctl00$ctl00$chk" value="Bride" />
- </p>
- <p>
- <label for="ctl00_ctl00_ContentMainPane_Body_ctl00_ctl00_chk_1">Groom</label>
- <input id="ctl00_ctl00_ContentMainPane_Body_ctl00_ctl00_chk_1" type="radio" name="ctl00$ctl00$ContentMainPane$Body$ctl00$ctl00$chk" value="Groom" />
- </p>
- </div>
- <script type="text/javascript">
- var mandatory_q_7 = function() {
- var selected = $("#q_7 input:radio:checked").val();
- if (selected != '') {
- $("#q_7").removeClass('error');
- }
- };
- $(document).ready(function() {
- $('#q_7 input:radio').click(function(){mandatory_q_7();});
- });
- </script>
- <div class="section" id="s_6">
- <h2>Attire</h2>
- ...
- </div>
- $('#<%= radBuffetCapacity.ClientID %> input').click(function (e) {
- var val = $('#<%= radBuffetCapacity.ClientID %>').find('input:checked').val();
- //Do whatever
- });
- $('#<%= radBuffetCapacity.ClientID %>').change(function (e) {
- var val = $('#<%= radBuffetCapacity.ClientID %>').find('input:checked').val();
- //Do whatever
- });
- <asp:RadioButtonList runat="server" ID="Intent">
- <asp:ListItem Value="Confirm">Yes!</asp:ListItem>
- <asp:ListItem Value="Postpone">Not now</asp:ListItem>
- <asp:ListItem Value="Decline">Never!</asp:ListItem>
- </asp:RadioButtonList>
- $("#<%=Intent.ClientID%>").change(function(){
- var rbvalue = $("input[@name=<%=Intent.UniqueID%>]:radio:checked").val();
- if(rbvalue == "Confirm"){
- alert("Woohoo, Thanks!");
- } else if (rbvalue == "Postpone"){
- alert("Well, I hope it's soon");
- } else if (rbvalue == "Decline"){
- alert("Shucks!");
- } else {
- alert("How'd you get here? Who sent you?");
- }
- });
Add Comment
Please, Sign In to add comment