I have PHP that searches a database and then echoes an html form for each result found. These are loaded via AJAX into the main HTML page into a div on document load.
Now I want to have listeners for each of these forms submitting. They all have the same inputs.
Each form has an incremental ID of processor (processor1, processor2, processor3, and so on).
So, depending on the results, it could be as little as one form or 50 forms. Is there a dynamic way of doing a form submit function rather than writing countless repetitive functions?