How callbacks on Form validation works?

234 views
Skip to first unread message

Prateek Kher

unread,
Apr 24, 2014, 12:13:38 AM4/24/14
to seman...@googlegroups.com
$(".ui.modal .ui.button.green").on('click', function(){
$("#feedbackForm").form('validate form');
$("#feedbackForm").onSucess(alert("Sucess"));
});

Every time I call this function onSucess or onFailure (whichever comes first) even if the form is showing error I get alert("Sucess"), what is exact procedure to get callback after form is validated successfully or has errors.

Reply all
Reply to author
Forward
0 new messages