$('#myForm').submit(function(){ $.ajax({ type: "POST", url: "modules/test/[b]test.class.php[/b]", data: "username="+$("#username").val(), success: function(html){ $("#content").html(html);