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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T22:54:08+00:00 2026-06-07T22:54:08+00:00

first a quick description: I have 4 tables (1 and 3 contain a line

  • 0

first a quick description:

I have 4 tables (1 and 3 contain a line of checkboxes, 2 and 4 contain radio buttons).

What I am looking to do is have it so that when I select a checkbox in table 1, it updates tables 2,3,4 by setting the equivalent checkbox to ‘disabled’.

I figure the easiest option is to use the ‘VALUE’ attribute, as this will be the same on each table (e.g. the field with VALUE 4 on the first table will be the equivalent of the field with VALUE 4 on the others).

My tables all have a unique ID per table, and share a classname of ‘TableClassName’.
They all look similar to:

<table id="TableID1" class="TableClassName">
<tr>
<th class="CellGrey">1</td>
<th class="CellGrey ">2</td>
<th class="CellGrey ">3</td>
<th class="CellGrey ">4</td>
</tr>
<tr>
<td class="CellRed "><INPUT TYPE="checkbox" NAME="ignore[]" VALUE="1" checked></td>
<td class="CellWhite "><INPUT TYPE="checkbox" NAME="ignore[]" VALUE="2"></td>
<td class="CellWhite "><INPUT TYPE="checkbox" NAME="ignore[]" VALUE="3"></td>
<td class="CellWhite "><INPUT TYPE="checkbox" NAME="ignore[]" VALUE="4"></td>
</tr>
</table>

So far what I have is:

script type="text/javascript">
$(document).ready(function()
{
$("#TableID1").on('click','input:checkbox',function()
        { 
            if ($(this).attr('checked')) 
                {
                var $val = $(this).attr('value');
                //alert($val);
                $(".DBSelectTable td").function()
                    {
                        if ($(this).child().attr('VALUE') == $val)
                            {
                                $(this).child().attr('disabled');
                            } 
                    }

            }       
        }
    )
}       
);
</script>

But, I am getting the error:

“Uncaught Type Error: Object[object Object] has no method ‘function’ “

my theory is simple:

  1. Select the #TableID1 table

  2. find out which box in the first table has been clicked and get the VALUE attribute

  3. Select the .TableClassName tables

  4. check if any have the same VALUE, and add the ‘disabled’ attribute

but something is wrong, and I can’t see where to go from here. Any help would be appreciated.

  • 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-07T22:54:10+00:00Added an answer on June 7, 2026 at 10:54 pm

    note that I use prop instead if attr.
    also, you can compare the values in the find function.

    $(document).ready(function()
    {
    $("#TableID1").on('change','input:checkbox',function()
            { 
                if ($(this).prop('checked')) 
                    {
                        var val = $(this).val();                
                        $(".DBSelectTable td").find("[value='"+ val +"']").prop('disabled',true)
                    }       
            }
        )
    }       
    );
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a quick question here. I know that the cakePHP find('first') function returns
A few quick searches discovered that I'm obviously not the first person to have
I have concluded that my first quick fix of storing an array of ids
First a quick definition :) Template - A string which may contain placeholders (example:hello
quick question - I have my first view which is going to be the
quick question. In my user database I have 5 separate tables all containing different
Quick background info: of the three database tables that are relevant for this question,
I have a quick jQuery question: First, my HTML: <div id=taskinput> <form> <input id=taskinput-box
Please have a quick read of this question first: Separating a list of entries
I'm writing a quick plugin (one of my first) to help with buttons if

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.