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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T06:32:54+00:00 2026-06-18T06:32:54+00:00

Here is my code, and I has been really frustrating on identifying the problem.

  • 0

Here is my code, and I has been really frustrating on identifying the problem.

I tried to use

$('[isEditButton="true"]').on('click', function(){ codes })
or 
$('table tr td').on('click', '[isEditButton="true"]' , function(){ codes })

but both yield unexpected result, the edit button can only be clicked once.

I searched the Jquery doc and used the so-called Delegated events, however, still did not work, the edit button is clicked once, also the newly injected button cannot be automatically attached the click event.

My online code

http://jsfiddle.net/dennisboys/mAjmU/2/

Anyone can give me some pointers on what is going on. I am really crazy on this problem. Thanks in advance for any kind helpers! Really need you guys!

  • 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-18T06:32:56+00:00Added an answer on June 18, 2026 at 6:32 am

    Your [isEditButton] elements are being dynamically appended, so you need to use on with a delegate handler, with that parent selector being available on DOM load. Your second example nearly fixed the problem, except the table tr td elements are being dynamically appended too. Try this:

    $('#address_list').on('click', '[isEditButton="true"]', function() {
         // rest of your code...
    });
    

    Updated fiddle

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

Sidebar

Related Questions

Reward: Has been claimed. Overview: The code giving me the problem is deployed here:
I've got a really annoying problem in Perl. Here is my code: if $password
KnockoutJS has been really great to use so far, but I'm new to the
The following code has concurrency issues. Here inDegVec is a global int * ,
enter code here My jquery ui dialog contains an iframe and has the option
Here is my code. The complete binary tree has 2^k nodes at depth k.
Here is my code: a.dateFrom = DateTime.ParseExact(x, dd/mm/yyyy, null); And x has value of:
I have a ListActivity which has an adapter that crashes. Here is the code
This one has me stumped. Here are the relative bits of code: public AgencyDetails(Guid
This is my code: var text1 = ↵,<strong>bla bla</strong>;//here text1 has value text1 =

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.