Validate Input only on blur or loose focus

368
November 22, 2016, at 10:03 AM

I am using - victorjonsson/jQuery-Form-Validator

URL: https://github.com/victorjonsson/jQuery-Form-Validator

I am validating a from, and using toggleDisabled feature. Form validate the input every time I press a key even on tab to get the new field. On tab both previous and new fields get validated.

Is this possible to validate the field only on blur, mean any property to attach.

Code I am using:

$.validate({ modules : 'security, toggleDisabled', disabledFormFilter : 'form.formcreateaccount', showErrorDialogs : true });
Answer 1

Use the option validateOnBlur: true

Rent Charter Buses Company
READ ALSO
won't redirect anymore - 302 status code

won't redirect anymore - 302 status code

Hey guys I got a 302 error code when I want to redirect my page, I'm using header().

355
Getting TypeError when iterating over an object

Getting TypeError when iterating over an object

I am using Rails, and I am getting an error in my jQuery code:.

351
Having multiple countdown timer in javascript with dynamic arguments

Having multiple countdown timer in javascript with dynamic arguments

I have implemented multiple countdown timer by using this jsfiddle link.

502