jQuery Validation plugin won’t validate when in click event handler of

.validate() is what initializes the Validation plugin on your form.

.valid() returns true or false depending on if your form is presently valid.

So you’d use .valid(), not .validate(), within an if statement to test if form is valid…

$("#tournamentDesign").validate();
$("#createTournament").click(function(){
    if($("#tournamentDesign").valid()){
    ...

See docs.jquery.com/Plugins/Validation/valid for more info.

Leave a Comment