Is it possible in Magento to extend validation.js to add the ability to validate single elements as opposed to complete forms.
If it is not possible what is the most unobtrusive way of customizing the validation.js script
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Based more on the detail provided in the comment to Francesco than the initial question – If validation is required validation for individual form elements onblur then you need to set the ‘immediate’ property of the Validation object to true like so…
This will cause validation to occur if an elements value has been changed and it looses focus.
I take it this is a site wide change – so I would normally place code such as this my themes js file but alternatively you can also place it in a template (obviously before your form object gets initialised) by enclosing it in script tags i.e..