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.
Here is my script:
jQuery(function($)
{
if (!$("#edit-name").val() || !$("#edit-email").val() || !$("#edit-comment-body").val())
{
$("#edit-submit").click(function()
{
$('#edit-name').after('<span style="color:red;">请输入你的名字</span>');
$('#edit-mail').after('<span style="color:red;">请输入你的邮箱</span>');
$('#edit-comment-body label span').append('<span style="color:red;">请填写内容</span>');
});
}
});