hi,
I want to submit a form without redirecting the page, when i use the codes
$('#form').submit(); $('#form').submit(function(){ alert("Hi")}); it redirects the page..
i used this code also,
$("#form").submit(function(){
$.post(
"/demos/ajax-submit/ajax-register.php",
$("#ajax-form").serialize(),
function(data){
alert(data);
}
);
});
it is also not working.. please help me...