Skip to content

Instantly share code, notes, and snippets.

@srttk
Created March 1, 2014 04:52
Show Gist options
  • Save srttk/9285385 to your computer and use it in GitHub Desktop.
Save srttk/9285385 to your computer and use it in GitHub Desktop.
jQuery add validation rule dynamically
function reqty_validation(){
if($("#required_qty").val()!="")
{
$("#required_qty_unit").rules('add',{required:true});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment