Thank you very much James.
this is great!
cheers
tim

On Wednesday 11 February 2009, James wrote:
> You can use a generic classname on all your forms.
>
> <form action="process1.php" id="form1" class="myForm">
> ...
> </form>
>
> <form action="process2.php" id="form2" class="myForm">
> ...
> </form>
>
> $(function() {
>      $(".myForm").submit(function(){
>           $.post($(this).attr("action"),
>                $(this).serialize(),
>                function(response,mystatus) {
>                     alert('response: ' + response + " status: " +
> status);
>                });
>                return false;
>           }
>      });
> });
>
 

Reply via email to