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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T18:47:55+00:00 2026-06-17T18:47:55+00:00

I have a table with some checkboxes in it, and I’ve added this code

  • 0

I have a table with some checkboxes in it, and I’ve added this code so that when you click on any part of specific table cells, the checkbox is checked. When a checkbox is checked, I need to remove a disabled class from a button in order to allow the user to move to the next step.

This code works fine in Chrome, but in Safari it hangs the window, immediately when $('input:radio', $parent).click() is called.

Is there a more correct way to be doing this?

$('td.info, td.control').click(function() {
  var $parent;
  $parent = $(this).parent();
  $('input:radio', $parent).attr('checked', true);
  return $('input:radio', $parent).click();
});
$("input[name='package[order_option_id]']").click(function() {
  return ($("#select-interaction-link")).removeClass('disabled');
});
  • 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-17T18:47:56+00:00Added an answer on June 17, 2026 at 6:47 pm

    I think the reason for the hang is that you’re causing an infinite loop. When the code clicks on the radio button, the click bubbles up to the containing td, which causes your click() handler to be run again.

    I think you can solve this with:

    $("td.info input:radio, td.control input.radio").click(function(e) {
        e.stopPropagation();
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a table that has checkboxes, if a checkbox is selected i want
I have a click event that does this: $('table tbody td').click( function (e) {
I have some table DOCUMENTS that have a column TYPE_ID and a table named
UPDATED: I have some table with sync_numbers, like this: --------------------- id | sync_number ---------------------
I have a database table with some rows that I want to fetch using
I have an Excel table with some data that I would like to export
I have a table like this: | Update | Name | Code | modification
I have some table rows with checkboxes. <table cellpadding=0 class=action_table> <tbody class=action_table_body> <tr class=action_table_row>
We have a table with a lot of checkboxes, onchange of a checkbox we
I have some HTML that displays a text input and 2 checkboxes side by

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.