Created
March 1, 2014 04:52
-
-
Save srttk/9285385 to your computer and use it in GitHub Desktop.
jQuery add validation rule dynamically
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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