Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

182
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda