Out on the box Form Affirmation in Magento

Let’s create each of our javascript file and install it in the js folder. All we want to do now is consist of our validation set of scripts. We’ll do of which using Magento’s addJs method which will add the javascript file to your website’s head.