Can not work correctly with posting form with jQuery
<p>I am trying to get the return from the mail.php but it does not work. What am I missing here?</p>

<p>this is my form</p>

<pre><code>&lt;form name="myform" id="myform" action="" method="POST"&gt; 
&lt;input type="text" name="email" id="email" size="30" value=""/&gt; 
&lt;input type="submit" name="button" id="button" value="Αποστολή"&gt;
&lt;/form&gt;
</code></pre>

<p>and this is the script</p>

<pre><code>$(function() {
$("#myform").submit(function() {

$.post('mail.php', function(data) {
  $('#results').html(data); });
});
});
</code></pre>

<p>this script works correctly with jQuery Validate</p>

<pre><code>$(document).ready(function(){
    $("#myform").validate({

        submitHandler: function(form) {
            // do other stuff for a valid form
            $.post('mail.php', $("#myform").serialize(), function(data) {
                $('#results').hide().html(data).fadeIn('slow');
            });
        }
    });
});
</code></pre>
