Skip to content

Instantly share code, notes, and snippets.

@mwin007
Created October 30, 2015 10:49
Show Gist options
  • Save mwin007/b3d0c7696f653d3f5566 to your computer and use it in GitHub Desktop.
Save mwin007/b3d0c7696f653d3f5566 to your computer and use it in GitHub Desktop.
var theForm = new VarienForm('frm_id', true);
Where frm_id is your form id
if (theForm.validator && theForm.validator.validate())
{
// if validation successful pass then
}
else
{
//magento validation fire
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment