function post()
{
var cvs = $('#client-nbr').val();
var cs = $('#cs').val();
$.post('http://sitea.com/a.php',{postcvs:cvs,postch1:cs});
return false;
}
call the function onsubmit :
<form action="http://siteb.com/b.php" method="post" id="formID" onsubmit="post()">
<input type="text" name="client-nbr" id="client-nbr" /> <br>
<input type="text" name="cs" id="cs" /> <br>
<button type="submit" name="submit" id="submit">subscribe</button>
</form>
I want to wait the function post()
to finish posting after that submit default action its possible ?