Skip to content

Instantly share code, notes, and snippets.

@nelsonJM
Created February 13, 2013 21:49
Show Gist options
  • Select an option

  • Save nelsonJM/4948654 to your computer and use it in GitHub Desktop.

Select an option

Save nelsonJM/4948654 to your computer and use it in GitHub Desktop.
jQuery: Validate code
<script src="javascripts/jquery-validation/dist/jquery.validate.js"></script>
<script>
// jQuery validate plugin
$(function(){
$("#quote-form").validate({
rules: {
name: "required",
email: {
required: true,
email: true
}
}
});
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment