using jquery validate but prevent the form submit
<p>the form is still submitted. if i want to use your code and add a step.that is if show the red text then preventing the form to submit?how do i do? thank you.</p>

<p>Here is my script:</p>

<pre><code>jQuery(function($)
{
    if (!$("#edit-name").val() || !$("#edit-email").val() || !$("#edit-comment-body").val())
    {
        $("#edit-submit").click(function()
        {
            $('#edit-name').after('&lt;span style="color:red;"&gt;请输入你的名字&lt;/span&gt;');
            $('#edit-mail').after('&lt;span style="color:red;"&gt;请输入你的邮箱&lt;/span&gt;');
            $('#edit-comment-body label span').append('&lt;span style="color:red;"&gt;请填写内容&lt;/span&gt;');
        });
    }
});
</code></pre>
