On 22/11/06, Andy Matthews <[EMAIL PROTECTED]> wrote:
> I'm running that function I posted earlier. And if it's the incorrect coupon
> code, the client wants to prevent the form from being submitted until it IS
> the correct code (or blank).
>
> Can someone remind me how I'd render a form unsubmittable using jQuery?

Attach a function to form submit and return false:

$("#myform").submit(function(){
    if(invalidcoupon) return false;
});

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to