If you're trying to submit the form even if it doesn't validate...then why
validate in the first place? i'm confused
cheers

Michael Lawson
Content Tools Developer, Global Solutions, ibm.com
Phone:  1-919-517-1568 Tieline:  255-1568
E-mail:  mjlaw...@us.ibm.com

'Examine my teachings critically, as a gold assayer would test gold. If you
find they make sense, conform to your experience, and don't harm yourself
or others, only then should you accept them.'


                                                                                
                                                 
  From:       shmolch <obuluchevsk...@gmail.com>                                
                                                 
                                                                                
                                                 
  To:         "jQuery (English)" <jquery-en@googlegroups.com>                   
                                                 
                                                                                
                                                 
  Date:       02/18/2009 09:26 AM                                               
                                                 
                                                                                
                                                 
  Subject:    [jQuery] Validation Plugin: How to submit invalid form via 
JavaScript                                              
                                                                                
                                                 






Hi,

I want to validate form and submit it via JavaScript even if it isn't
valid, and don't do it if the "submit" button is pressed

$(document).ready(function() {
          validator = $("#editUserForm").validate(
                {
                    focusInvalid: false,
                    ignoreTitle: true,
                    onkeyup: false
                });
          ...
});

And then I'm trying to submit form after onclick on some control

$("#someControl").click(function() {
   // do something
    $("#filterForm").submit();
});

Unfortunately, form doesn't via JS submit if validation failed

<<inline: graycol.gif>>

<<inline: ecblank.gif>>

Reply via email to