jzaefferer/jquery-validation — Issue #239: [bug+fix] Clicking on Submit button submits empty 'required' inputs.
Author: tw2080
Created: 2011-10-21 09:44:10+00:00
State: open

Clicking on Submit button directly, without going to any input controls, submits empty 'required' inputs.

Quick Fix: See my other post about adding 'oncreate' parameter.

oncreate: function(validator, form ){
$(validator.currentForm).find('.required').each(function(){
validator.submitted[ this.name ] = true;
}
)
}