Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8099905
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T22:33:52+00:00 2026-06-05T22:33:52+00:00

aspx script: <script type=text/javascript> $(document).ready(function() { $(.div_soru).hide(); $(.div_soru).first().show(); $(.onceki).click(function() { if ($(this).closest(.div_soru).prev(.div_soru).html() != null)

  • 0

aspx script:

<script type="text/javascript">
    $(document).ready(function() {
        $(".div_soru").hide();
        $(".div_soru").first().show();
        $(".onceki").click(function() {
            if ($(this).closest(".div_soru").prev(".div_soru").html() != null) {
                $(this).closest(".div_soru").hide();
                $(this).closest(".div_soru").prev().show();
                $(".bitir").hide();
                $(".sonraki").show();
            }
        });
        $(".sonraki").click(function() {
            if ($(this).closest(".div_soru").next(".div_soru").html() != null) {
                $(this).closest(".div_soru").hide();
                $(this).closest(".div_soru").next().show();
                if ($(this).closest(".div_soru").next().next().html() == null) {
                    $(".bitir").show();
                    $(".sonraki").hide();
                }
            }
        });
    });
</script>

and aspx:

<asp:Repeater ID="Repeater_sorular" runat="server" OnItemDataBound="Repeater_sorular_OnItemDataBound"
            OnItemCommand="Repeater_sorular_ItemCommand">
    <HeaderTemplate>
    </HeaderTemplate>
    <ItemTemplate>
         <div class="div_soru">
             <div class="div_soru_wrapper">
                 <div style="font-weight: bolder; padding: 5px;">
                    (<%#(((RepeaterItem)Container).ItemIndex+1).ToString() %>
                    /
                    <%# Eval("SoruSayisi")%>)
                    <%#Eval("Subject")%>
                 </div>
                 <asp:RadioButtonList ID="RadioButtonList_secenekler" runat="server" Visible='<%# Eval("TypeId").ToString() == "2" %>'
                    DataSource='<%#Eval("Secenekler")%>' DataTextField="OptionName" DataValueField="OptionId">
                 </asp:RadioButtonList>
                 <asp:CheckBoxList ID="CheckBoxList_secenekler" runat="server" Visible='<%# Eval("TypeId").ToString() == "1" %>'
                    DataSource='<%#Eval("Secenekler")%>' DataTextField="OptionName" DataValueField="OptionId">
                 </asp:CheckBoxList>
              </div>
              <div class="div_nav_buttons">
                  <table>
                      <tr>
                            <td id="onceki" class="onceki">
                                <img src="../Img/adminicons/geri.gif" />
                            </td>
                            <td id="sonraki" class="sonraki">
                                <img src="../Img/adminicons/ileri.gif" />
                            </td>
                            <td id="bitir" class="bitir">
                                <asp:ImageButton ID="ImageButton_kaydet" runat="server" CommandName="kaydet" ImageUrl="~/Img/adminicons/kaydet.gif"
                                        CommandArgument='<%# Container.ItemIndex %>' OnClientClick="return confirm('Anketi kaydetmek istediğinize emin misiniz?');" />
                            </td>
                      </tr>
                 </table>
            </div>
        </div>
    </ItemTemplate>
    <FooterTemplate>
    </FooterTemplate>
</asp:Repeater>

This script hide radio groups. And I show them one by one with using next and prev button.
I want to show an error message if a radio in one of radio gruop is not select. How can I current radio group selected value.

I try this but this is getting radio value from the first radio group.

var selectedRadios = $(".div_soru_wrapper input:radio:checked").val();

I think I cant explain clearly. I hope you understand what I want to do 🙂
Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T22:33:53+00:00Added an answer on June 5, 2026 at 10:33 pm

    If you want to check if there is a checked radio button in the currently visible group, the :visible selector can help you:

    if ($(".div_soru_wrapper:visible input:radio:checked").length) {
        // There is a checked radio button in the currently visible group.
    } else {
        // There is no checked radio button in the currently visible group.
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is my Default.aspx + jQuery Script: <!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
This is My Code Default.aspx: <!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org /TR/xhtml1/DTD/xhtml1-transitional.dtd>
This is the first time I've ever tried JQuery basically because I couldnt get
This code is working in firefox but on IE 8 it returns nothing <script
I am getting NetworkError: 500 Internal Server Error - http://localhost:5963/default.aspx/Call when am calling this
I want to show the pop up of dynamic boxes.On each click i should
please some one help to clear this error I want to show a modal
I would like to trigger button on document.ready() and do ajax call event on
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Urunler.aspx.cs" Inherits="Urunler" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
I am loading an external file 'contact_us.aspx' into a jquery dialog box. the external

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.