Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

192
Views
JQuery, copy new row - loses track of event associated with class selector

Since an upgrade in JQuery, I have problems catching an event on a new div added displaying a row of data.

Initially when my screen displays, I have one row of data displayed. When I click on a cell in this row, it triggers a "click" event associated with class "transferaction", and proceeds to create a second new row of data on screen that is a clone of the first. I can then click on the second row, and yet again trigger a "click" event to add yet another third row. Since an upgrade to JQuery, the new target row no triggers the click event (even thought it contains class "transferaction"). How can I change the NEW JQuery to pick up the click event from a NEW ROW?

OLD JQuery

    $(".transferaction").live("click", function (event) {
        top.copyRow(this, null, ['odd', 'even']);
    });

NEW JQuery

    $(".transferaction").on("click", function (event)
    {
        top.copyRow(this, null, ['odd', 'even']);
    });

NEW ROW

<select name="ddlTransferStatus" id="ddlTransferStatus" class="fac transferaction" objectname="TransferStatus" row_index="-1" row_id="-1" group_row_id="1"><option selected="selected" value=""></option><option value="REQUEST TRANSFER">REQUEST TRANSFER</option><option value="RECEIVE PARTS IN">RECEIVE PARTS IN</option><option value="CANCELED">CANCELED</option></select>
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!