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 6228023
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T09:19:03+00:00 2026-05-24T09:19:03+00:00

In my asp.net website I am using nested repeaters.Outer repeater is used to display

  • 0

In my asp.net website I am using nested repeaters.Outer repeater is used to display a list of products and inner repeater is used to display additional options accompanying the products.
These repeaters are rendered as following

<table class= “productslist”>
<tbody>
<tr>....</tr>
<tr>....</tr>
<tr class=”productTextAlign”>  ......</tr>
<tr class=”additionalOptions”> ..... </tr>
<tr class=”additionalOptions”>.....</tr>

<tr class=”additionalOptions”>.....</tr>

<tr class=”additionalOptions”>.....</tr>

<tr class=”additionalOptions”>.....</tr>
<tr>...</tr>

<tr class=”productTextAlign”></tr>

<tr class=”additionalOptions”>.....</tr>

<tr class=”additionalOptions”>.....</tr>

<tr class=”additionalOptions”>.....</tr>

<tr class=”additionalOptions”>.....</tr>
</tbody>
</table>

In the HTML above, each tr with class ‘productTextAlign’ has got a checkbox and textbox which are rendered like this

<td>
<input type=”checkbox” id =”ProductRepeater_productCheckBox_0”......>
</td>
<td class=”numberRequired”>
<input type=”text” id=”ProductRepeater_numberRequired_0”......>
</td>

and each tr with class ‘additionalOptions’ has a checkbox rendered similar to this.

<input type=”checkbox” id =”OptionsRepeater_optionCheckBox_0” onclick=”ConfirmProductChosen(this)"......>

On the click of this checkbox I would like to check if the associated Product checkbox(which is in the tr with class ‘ProductTextAlign’) is checked and if its not I would like to throw an alert using a jquery/javascript function.

But I am not sure how to access the row in which the checkbox is checked and in turn get access to the checkbox in the row(with ‘.ProductTextAlign’) somewhere above this row.

Could someone please help me with this?

  • 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-05-24T09:19:03+00:00Added an answer on May 24, 2026 at 9:19 am
    // bind the click event to checkboxes within .additionalOptions
    $(".additionalOptions input:checkbox").click(function() {
    
        // find the closest .additionalOptions tr and then find the closest previous sibling
        // with the .productTextAlign class, then find the checkbox within
        var $checkbox = $(this).closest(".additionalOptions").prevAll(".productTextAlign").find("input:checkbox");
    
        // if the checkbox is checked, fire the alert
        if (!$checkbox.is(":checked"))
            alert("Totally checked");
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing a asp.net webforms website using vb.net. In that list of files displayed
SUMMARY: When browsing an ASP.NET website using Windows Explorer, popup windows do not borrow
I created a new ASP.NET website using Visual Web Developer 2008 Express edition and
I am creating an installer for an ASP.Net website using WiX. How do you
I'm attempting to build a ASP.NET website using MSBuild - specifically the AspNetCompiler tag.
I'm trying to run a freshly created ASP.NET Website using C#, however when I
Running an ASP.Net website and using TinyMCE for content management. Users need to be
I am trying to use NServiceBus with an ASP.NET MVC 2 website (using VS
When creating a website using Asp.Net and using controls such as the ListView is
I'm developing a website (using asp.net by the way) and I'm having a problem

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.