> What is wrong with this code?
>
> <code>$(document).ready(function() {
>         $("#f_submit").hide();
>         $("#f_altsubmit").click(function(event) {
>                 $("#checkoutform")[0].submit();
>                 return false;
>         });
>
> });</code>
>
> In FF3 this throws an error in the Error console : Error: $("form")
> [0].submit is not a function
> but this error does not show up in Firebug.
>
> Also what is strange is that when i change the method from submit() to
> reset() ... the reset works ...
> It seems my form doesn't have the submit method in FF3????
>
> See for yourself athttp://dev.rotarygiftshop.com/cart/checkout


You have an input named 'submit'.  Change the name/id of that input
and you'll be fine.

Reply via email to