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

  • Home
  • SEARCH
  • 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 8966541
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T17:02:41+00:00 2026-06-15T17:02:41+00:00

I have an HTML table <table id=sometable> <tr> <td> <table class=wTable> <tr> <td> <input

  • 0

I have an HTML table

 <table id="sometable">
 <tr>
   <td>
       <table class="wTable">
            <tr>
                 <td>
                       <input type="radio" name="rdGroup" val="0" /> 
                 </td>
                 <td>
                       <input type="radio" name="rdGroup" val="5" />
                 </td>
                 <td>
                       <input type="radio" name="rdGroup" val="10" />
                 </td>
            </tr>
       </table>
   </td>
 </tr>
 </table>

The reason for the table within a TD is for the purpose of skinning and positioning. I’m not great when it comes to JQuery and was wondering if there was a selector technique to get access to that radio button when that cell is clicked.

For example, previously my code was set as (before skinning):

 <table>
 <tr>header stuff</tr>
 <tr>
     <td>data</td>
     <td>data 2</td>
     <td><input type="radio" name="rdGroup" value="0"> No Warranty </br>
         <input type="radio" name="rdGroup" value="5"> 1 year Warranty </br>
         <input type="radio" name="rdGroup" value="10"> 2 year Warranty </br>
     </td>
     <td>data 3</td>
 </tr>
 <tr>footer stuff</tr>
 </table>

Above is the original basic table structure.

 $("#dnn_ctr391_Account_ctl00_ctl01_grdItems tr:first,#dnn_ctr391_Account_ctl00_ctl01_grdItems tr:last").addClass("info");

The above added a class named info to the header and footer of the table (i didn’t care for any of the data in them)

From there I created a td click function to process data:

 $("#dnn_ctr391_Account_ctl00_ctl01_grdItems tr:not(.info) td:nth-child(7)").click(function() { //DO CODE HERE });

And within that click function I was able to access data from the other cells I needed:

 var warval = 0;

 warval = $(this).closest("tr").find("input[type=radio]:checked").val();

Is there a way for me to get access using the same style of coding to get access to when that cell is clicked to get the radio button value, and then leave that table to go back to the TD it is in, and then get access to the other td’s using the $(this).closest(“tr”).find() method?

Thanks for any help you can provide.

  • 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-15T17:02:42+00:00Added an answer on June 15, 2026 at 5:02 pm

    Ok, from what you said in the comments, I hope this is helpful:

    First of all, I would advise changing the table markup to divs. This is not mandatory, but it will lead to cleaner and more manageable code. Something like this maybe:

    <p>data 1</p>
    <p>data 2</p>
    <div>
        <input type="radio" name="rdGroup" id="rdGroup_0" value="0" />
        <label for="rdGroup_0">No Warranty</label>
    </div>
    <div>
        <input type="radio" name="rdGroup" id="rdGroup_5" value="5" />
        <label for="rdGroup_5">1 year Warranty</label>
    </div>
    <div>
        <input type="radio" name="rdGroup" id="rdGroup_10" value="10" />
        <label for="rdGroup_10">2 year Warranty</label>
    </div>
    <p>data 3</p>
    <div class="footer">Footer</div>
    

    Your jQuery hook could be as simple as this:

    $(function() {
        $('input[type=radio]').change(function() {
            // do whatever needs to be done here when the radio button value changes
            console.log("value '"+this.value+"' was selected for the warranty option");
        });
    });​
    

    If you need to set the corresponding value when loading the form with the data stored in your DB, you could do it with this function (if you’ve set your radio box IDs as shown above):

    var setWarrantyOption = function(value) {
        $('#rdGroup_' + value).click();
    };
    

    You can fiddle around with the code here: http://jsfiddle.net/gruese/fsj2v/

    Please tell me if that helps or if I’ve maybe misunderstood your problem.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an HTML table that contains some 500 rows. I have an input
I have this html table: <table class=table-all> <tbody> <tr> <td>BISFENOLO</td> <td>Bisfenolo-AF 10/10</td> <td class=right>€
I have an HTML table like: <div> <table border=1> <thead> <tr class=example> <th> <span
i have a table in html like this: <table id=someTable> <tr> <td> <span></span> </td>
I have some table rows <tr class=b_row> <td> <div class=cpt> <h2> <a href=/ref/ref/1.html>example</a> </h2>
I have HTML table. I'm looping through table and iterate over each row whose
see fiddle i have html table and one textbox and one button.make cell selection
I have an HTML table in my jsp page. This conains text fields and
I have a html table like this: Invoice# Due Date Balance Select 12345 12/25/2011
I have an html table with one of the headers spanning over 2 columns.

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.