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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T03:28:52+00:00 2026-06-08T03:28:52+00:00

In my project I updated the used jQuery version from 1.4.2 to 1.7.2. Now

  • 0

In my project I updated the used jQuery version from 1.4.2 to 1.7.2. Now I observe some unexpected behaviour when handling the click event handler of <tr> elements.

Multiple sites contain tables with a radio button in the first column. So the HTML looks like this

<table>
  <tbody>
    <tr onclick="selectOnClick(this)">
      <td><input type="radio" .... /></td>
      ......
    </tr>
...

In a separate js file there’s the definition of the JS function

function selectOnClick(row) {
  $(row).children('td').children('input :first').click();
  $(row).children('td').children('input :first').click();
  $(row).children('td').children('input :first').click();
}

So whenever an element inside the table’s row is clicked, the first input element is clicked. I can’t tell why it was needed to invoke the same statement in the function 3 times, but there was a reason for it.

My problem is that after the jQuery update (v.1.4.2 –> 1.7.2) one mouse click on the row produces hundreds of events instead of a single one. The browser is so busy to handle them that it looks like it doesn’t react at all. If I modify the function to invoke click() only once it doesn’t change.

Can someone tell me what could be the reason for that effect.

  • 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-08T03:28:53+00:00Added an answer on June 8, 2026 at 3:28 am

    Every time you trigger a click event on one of the child elements, it bubbles back up to the tr causing an infinite loop. Try triggering the handler instead of the event.

    function selectOnClick(row) {
        $(row).children('td').children('input :first').triggerHandler("click");
    }
    

    Note however this will only trigger jQuery bound events.

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

Sidebar

Related Questions

I inherited a project from another developer who used jQuery UI. I've added a
I just updated from jQuery 1.3.2 to 1.4.3, and I'm seeing some new behavior
I've updated a project to VS2010 and MVC2 from VS2008 and MVC1. I'm having
I've recently updated my old Lua 5.1 project to the newest version of the
My code used to work, but I recently updated jQuery UI to 1.8 and
I'm using jQuery and SimpleModal in an ASP.Net project to make some nice dialogs
I have used data binding in my project in earlier version of WPF. I
I changed the main icon used on a WinForms project. I updated the icon
ExtendedDateChooser class is great solution for simple event calendar used in my flex project.
I updated a project (SVN). Update failed because a file cannot be opened, althought

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.