Skip to content

Instantly share code, notes, and snippets.

@marcogrueter
Created January 8, 2016 09:22
Show Gist options
  • Save marcogrueter/61c0c63209393aa315ca to your computer and use it in GitHub Desktop.
Save marcogrueter/61c0c63209393aa315ca to your computer and use it in GitHub Desktop.
// zuerst data attribute an felder anhängen, dann parsley initialisieren
// vorname muss eingegeben werden und mind. 3 zeichen enthalten
$('#contact_vorname').data('parsleyRequired', 'true');
$('#contact_vorname').data('parsleyMinlength', 3);
// init parsley
$('#form').parsley();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment