Robert Granlund
asked on
jQuery
I want to create two functions and have them both run on the click of a single button. I'm not sure how to do that.
So it would look like:
All three functions run when one button is clicked.
The code creates a loop:
<script>
START LOOP
{start_loop (foreach)}
$(".submit_to").on("click", validate_form_{row_id});
{end loop}
So it would look like:
$(".submit_to").on("click", validate_form_1);
$(".submit_to").on("click", validate_form_2);
$(".submit_to").on("click", validate_form_3);
All three functions run when one button is clicked.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I'd need to see your html and other relevant code. Specifically the validation functions.
Do you get any errors on the console?
Do you get any errors on the console?
ASKER