Question: I have following form:

```
<form id="form" action="comments.php" method="post">
  <ul>
    <li><div class="formbox_titles">Name</div><input type="text" name="name" class="required comm_input" /></li>
    <li><div class="formbox_titles">Email</div><input type="text" name="email" class="required comm_input"/></li>
    <li><div class="formbox_titles">Message</div><textarea name="message" class="required comm_text"></textarea></li>
    <li><input type="submit" value="Submit"></li>
  </ul>
</form>

```

and following JQuery for form submission:

```
target: '#preview', 
  success: function() { 
  $('#formbox').slideUp('fast'); 
}

```

Now the problem is that I also have form validation JQuery code

```
$().ready(function() {
    // validate comment form
    $("#form").validate({ 
    });
});

```

Both of them work great and form does popup warning that all three fields cant be empty but the date inside form is submitted into database anyway. Im using following code for form validation <http://bassistance.de/jquery-plugins/jquery-plugin-validation/> So the question is how to add first jquery inside second, so first will be executed once the required fields are filled?

Hope someone will help. Thanks.

Answer: 
If you want to submit the form manually, you have to bypass jQuery bound event. You can do it in either of these ways:

```
$('#form_id')[0].submit();

```

or

```
$('#form_id').get(0).submit();

```

**[0] or get(0) gives you the DOM object instead of the jQuery object.**
When you say that the "date inside form is submitted" that makes no sense to me because in your code snippets I see nothing called "date". 

I've used the .validate() plugin extensively...
What I can tell you that may help is that the validate plugin you're using has a submitHandler function that you can use...

```
// validate comment form
$("#form").validate({
submitHandler : function(form) {
    //do something here
    form.submit();
}
});

```

The submitHandler is called only if all the rules for validation are met. Namely in your case you have three fields with "required" on them which means that this form will NOT be submitted unless all three fields have a value.

With that, I can tell you for sure that with the information provided there is nothing to indicate the problem you're describing. Providing more and better information will help us figure out what's wrong.