I need a hand figuring this one out. I have tried every combination of selector, but can't seem to run a function on click of .form-del-field.
What is weird is that even if I select the entire row, it won't run on click of the delete 'X'.
Here are combination I have tried:
$('#q34').on('click', 'a', checkPCardCheck); $('#q34').on('click', 'tr td:last-child a', checkPCardCheck); $('#q34').on('click', '.cf-delete-field', checkPCardCheck); //the ones below works the first few then stops working $('#q34 .form-del-field').on('click', checkPCardCheck); $('.registrationTable .form-del-field').on('click', checkPCardCheck);
checkPCardCheck if a variable that is a function. It works fine on click of Add Row (.cf-table-add-row). There is only one of them and it exists outside of the body of the table, so it is a little different:
$("a.cf-table-add-row:contains('Add Row')").on('click', checkPCardCheck);
I have reached the limit of my javaScript troubleshooting.
Thank you in advance!
Chris
EDIT: I found this post that has helped:
https://answers.laserfiche.com/questions/115543/Forms--run-javascript-when-row-is-deleted