Expand my Community achievements bar.

Dialog Validation

Avatar

Level 2

hi All,

I have to validate the fields in a dialog and show a consolidated alert message for the missing fields. I have an approach using validator register (but works for one argument) and i dont know for some reason "dialog-closed" touch ui event handler is not working in the js file(no error in compilation).
Any robust approach guys.
Thanks for responses.

$.validator.register({
selector: '.testcls',
validate: function(el) {
var value = el.val();
if (value==' ') {
alert("Cannot be null");
}
}

});

1 Reply