#39;button[type=submit]&#39;)
            .click(function(e) {
                e.preventDefault();

                if (<strong>!_$form.valid()</strong>) {
                    return;
                }

                var input = <strong>_$form.serializeFormToObject()</strong>;
                <strong>abp.services.app.task.create</strong>(input)
                    .done(function() {
                        location.href = &#39;/Tasks&#39;;
                    });
            });
    });
})(jQuery);</pre>
