$.post work only with alert
<p>When i call function with alert is working parfectly :</p>

<pre><code>function post() {
    var cvs = $('#client-nbr').val();
    var cs = $('#cs').val(); $.post('a.php' {postcvs:cvs,postch1:cs});
    alert("The function work");
}
</code></pre>

<p>And the html form like this :</p>

<pre><code>&lt;form action="b.php" method="post" onsubmit="return post()"&gt;
</code></pre>

<p>The problem is when i remove alert from function the $.post doesnt work :</p>

<pre><code>function post() {
    var cvs = $('#client-nbr').val();
    var cs = $('#cs').val(); $.post('a.php' {postcvs:cvs,postch1:cs});
}
</code></pre>

<p>Pls help :)</p>