can I get help on DOB validation on magento

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 anything and a user can input any number of text and it accepts can you guys please help?

One thought on “can I get help on DOB validation on magento”

  1. 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.

Leave a Reply

Your email address will not be published. Required fields are marked *