Mutiple Forms and One Submit Button
I have currently using a a tab structure on each tab i have separate form.. .. more after form submit i want to move back to the same tab so i got an idea to use href on click event..
but i don't to create multiple buttons to submit the forms.
Can you describe your problem differently? I'm not sure I understand the problem.
If you are trying to return to the same tab(?) last selected by the user?
You could consider using a cookie or localstorage to return to a particular display.
If you are trying to create multiple forms, perhaps you can give and id value to each one
and call the submit for a particular form with: document.getElementById('formID').submit();
Do you have an example site or some code to demonstrate the problem you are having?
I don't know how you have you're tabs setup or how you switch between them.
I suggest adding a hidden form field in each form, like
<input type="hidden" name="thisForm" value="form1">
<input type="hidden" name="thisForm" value="form2">
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)