I am using jquery.form.js for submitting the form. And I am submitting the form using ajax Submit function and I am giving the ID of a div as target. If everything works fine the response message will load in the div. If there is any error can I set a different target. If there is any way pl. let me know.

submitHandler: function(form){
$(form).ajaxSubmit({
target: '#content',
success: function() {
$("#tree_browser").load("tree_browse.html");
}
});
}

The problem is if the form is success I will load another html file. If there is any server side error I am loading the form page again with the server side error from the backend. here the jquery gets broken because this page is loaded from server side and jquery.js is not included in this page. Jquery is included in the Template HTML.