$('#myform').form('submit',{ url: "login.action", onSubmit:function(){ return $('#myform').form('validate');}, success:function(){ } });