1. Element identifiers should be unique, in other words, if any form or
field has identifier - it should not repeat in other forms.
2. When submitting form via script, it has option for the name of desired
submit button, e.g. for form with two submit buttons:
<form id="formId2">
<input type="submit" name="submitButtonName1" value="1" />
<input type="submit" name="submitButtonName2" value="2" />
</form>
script
$("formId2").serialize({submit:"submitButtonName2"})
will give serialized result as if the second button was pressed.
3. Also you can have single form on page, and many buttons which just
trigger form submission explicitly, e.g.
<button onclick="sendForm('submitButtonName3');">Submit 3</button>
--
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/prototype-scriptaculous/-/YjJQCwFBI5UJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en.