Skip to content

Instantly share code, notes, and snippets.

@rruhlen
Created May 12, 2017 21:46
Show Gist options
  • Save rruhlen/617b8775e9a43a37a1c9ce07d2cd86ad to your computer and use it in GitHub Desktop.
Save rruhlen/617b8775e9a43a37a1c9ce07d2cd86ad to your computer and use it in GitHub Desktop.
require a custom field
<script type="text/javascript">
$(function() {
$("#customer_custom5").rules("add", {
required: true,
messages: {
required: "Required field.",
}
});
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment