var error = whatever.sanityCheckFormFields(foo, bar, baz); if(!error) { whatever.saveRecord(foo, bar, baz); } else { alert(error); }
No comments:
Post a Comment