Multiple forms validation on single page : bassistance validate
http://bassistance.de/jquery-plugins/jquery-plugin-validation/
I have several forms on a page that need to be validated independantly (several products, each with options and a add to cart button)
What I have come up with is this:
- <form method="post" action="" id="validateform_<?= $id ?>">
and then, after the form:
- <script type="text/javascript">
jQuery("#validateform_<?=$id?>").validate();
</script>
Which, after a quick check, seems to work. So, the questions is,
I'm not using the normal "jQuery(document).ready" wrap; is that ok?
These <script> tags are in the body, each one after the form that it goes with; ok?
Any thoughts welcome.
thanks, dc.