Skip to content

Instantly share code, notes, and snippets.

@rruhlen
Created September 17, 2013 23:06
Show Gist options
  • Select an option

  • Save rruhlen/6601920 to your computer and use it in GitHub Desktop.

Select an option

Save rruhlen/6601920 to your computer and use it in GitHub Desktop.
JS to require a custom field.
<script type="text/javascript">
$(document).ready(function()
{
$("#ticket_custom1").rules("add", {
required: true,
messages: {
required: "Required",
}
});
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment