Hi there, I am using jQuery Form Plugin with Matt's Script Formmail,
and I simply cannot get it to work. Rather than showing up with the
ajax form, it still just default redirects me to a success or error
page.

I am not jQuery expert, but I was hoping someone can point me in the
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!

Reply via email to