1

How can I detect changes to a form when the row are added dynamically using the clone() function in jQuery.

This is what I tried:

$('table input').change(function() {
    // Execute the function
});

This function is working when the row is here from the beginning but not when the row is cloned.

Thanks a lot.

Ross
  • 45
  • 4

1 Answers1

0

Just by using this:

$(document).on('change', 'table input', function() {
    // Execute the function
});
F__M
  • 1,518
  • 1
  • 19
  • 34