I am new in magento I would to validate my DOB fileds on the registratoin page so that valid dates can be inserted by the user, at the moment the input fieds accept anyt开发者_如何学Ching and a user can input any number of text and it accepts can you guys please help?
Look in your theme's (or default) template/customer/form/widget/dob.phtml
file. It creates three strings which describe the three text inputs for day, month and year. You can either add the validate-number
name to their class or rewrite them to use <select>
elements instead.
精彩评论