jquery: ajaxForm

...

<head>

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.js"></script>
<script src="http://malsup.github.com/jquery.form.js"></script>

<script>
$(document).ready (function () {
var options = { success:       showResponse };
$('.login_post').ajaxForm (options);
});

function showResponse (responseText, statusText, xhr, $form)  {
$(«.login_div»).html (responseText);
};
</script>
</head>

<body>

<form class=«login_post» ... >

...

</form>

<div class=«login_div»>

</div>