Validating the DOJO form programatically from Java Script
Sometimes we may need to validate the dojo form programatically from java script.<form id="createForm" data-dojo-type="dijit.form.Form" data-dojo-attach-point="form"> .......</form>
The below line of code will help us to validate the form from java script
var formResult=dijit.byId('createForm').validate();
The validation result will be true if the validation of all the filed is success else the value will be false.
No comments:
Post a Comment