Form Validation- Display Error in Validate() Error Handler?

Form Validation- Display Error in Validate() Error Handler?

Hi guy,

I currently validate successfully a login form that validate each single input.

Email And Password

The validator verify that each input are filled correctly.

The problem is that when the form is submitted, and my .php validating the email & password in the DATABASE and detect an error, I just don't know how to display the error inside the validator div's with the returned value?

This is my Error TableCell / DIV
<td id="AcommentMESSAGE">
<div id="AcommentMESSAGE2">
<label style="font-weight: bold; font-size: 11px;">Error have been found:</label>
</div>
<ul style="margin: 0px 0px 0px 0px;"></ul>
</td>


My Javascript code of validation start with this

$("#AcommentaireForm").validate({
      errorContainer: "#AcommentMESSAGE, #AcommentMESSAGE2",
      errorLabelContainer: "#AcommentMESSAGE ul",
      wrapper: "div"


How can I insert my returned Error inside this ErrorHandler ?

Thanks