Skip to content

Instantly share code, notes, and snippets.

@evadi
Last active December 16, 2015 00:18
Show Gist options
  • Save evadi/2e00039c4cc9f76b9f3a to your computer and use it in GitHub Desktop.
Save evadi/2e00039c4cc9f76b9f3a to your computer and use it in GitHub Desktop.
//this code goes in your partialview
$(function(){
//allow the validation framework to re-prase the DOM
jQuery.validator.unobtrusive.parse();
//or to give the parser some context, supply it with a selector
//jQuery validator will parse all child elements (deep) starting
//from the selector element supplied
jQuery.validator.unobtrusive.parse("#formId");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment