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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T00:17:37+00:00 2026-06-14T00:17:37+00:00

You can se my problem here http://jsfiddle.net/eWh5F/76/ () what i want is to click

  • 0

You can se my problem here http://jsfiddle.net/eWh5F/76/ ()
what i want is to click on the TD and the checkbox should be checked/unchecked works fine for checkbox inside a TD but when I have a table inside a TD and TD inside that, any solution to that?
I have tried stuff like this below but whit no luck

$("td").click(function(e) {
var checkbox = $(':checkbox', $(this).parent()).get(0);
var checked = checkbox.checked;
if (checked == false) checkbox.checked = true;
else checkbox.checked = false;});
  • 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-14T00:17:39+00:00Added an answer on June 14, 2026 at 12:17 am

    You can use prop method:

    $("td").click(function(e) {
        $('> input[type=checkbox]', this).prop('checked', function(i, checked){
           return !checked
        })
    });
    

    http://jsfiddle.net/jdy3d/

    Note that :checkbox selector is deprecated.

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

Sidebar

Related Questions

You can look here: http://jsfiddle.net/vsjwww/n7kk3/17/ It all works fine, but as you see, the
I can't find any solution to this problem. Here's the render I want: http://jsfiddle.net/kQSxb/
I've got a problem which you can look at here http://jsfiddle.net/dng2P/4/ If you click
You can see the example here: http://jsfiddle.net/8EHED/8/ This is a tricky problem because I
Ive made a fiddle of my problem here. http://jsfiddle.net/E9cUS/1/ JavaScript: $('.top').click(function () { var
The problem that I'm trying to resolve can be seen here: http://jsfiddle.net/AAyLj/14/ Basically, when
Check out my problem here: http://jsfiddle.net/89sq2/ What should happen is that the months legend
I have a browser problem in IE7 which you can view here: http://jsfiddle.net/SZDDm/1/ The
I've reproduced the problem here: http://jsfiddle.net/Rc52x/5/ If you click on Click here! while using
I've created a fiddle here: http://jsfiddle.net/surfjam/zWWpz/ I can't figure out why animate works in

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.