> right direction, basically on submit, rather than redirecting to the
> default success (or error page), I just wanted this message to appear
> in the alert.
>
>     <script type="text/javascript">
>         // wait for the DOM to be loaded
>         $(document).ready(function() {
>             // bind 'myForm' and provide a simple callback function
>             $('#myForm').ajaxForm(function() {
>                 alert("Thank you for your comment!");
>             });
>         });
>     </script>
>
> <form id="myForm" action="FormMail.pl" method="POST">
> <input type="hidden" name="recipient" value="xxx" />
> <input type="hidden" name="ar_subject" value="Contact Form" />
> <input type="hidden" name="require" value="realname,email" />
> <input type="text" class="textbox" name="realname" />
> <input type="text" class="textbox" name="email" "/>
> <input type="submit" class="submit" value="CONTACT">
> </form>
>
> Thanks in advance!

I don't see anything wrong there execpt an extra " in the email
input.  Have you included the form plugin on your page?  What you
posted works here:

http://www.malsup.com/jquery/form/testing/feb19-2.php

Reply via email to