I create form on success page with id varification-sms-code and add class input-text required-entry validate-email but not working
var validator = new Validation('varification-sms-code', {immediate : true});
validator.validate();
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.
Sign up to join this communityI create form on success page with id varification-sms-code and add class input-text required-entry validate-email but not working
var validator = new Validation('varification-sms-code', {immediate : true});
validator.validate();
you need to use this
<script type="text/javascript">
//<![CDATA[
var validatoryourForm = new VarienForm('your-form-Id', true);
//]]>
</script>
You can use the following code :
<script type="text/javascript">
//<![CDATA[
var validator = new VarienForm('varification-sms-code', true);
//]]>
</script>