jquery validate plugin and errorPlacement

jquery validate plugin and errorPlacement

Hi,

I am using jquery validate plugin to validate my form fields.
I have here a simple working form

Form1

My form2 is the same form with the jqtransformplugin for more good design.
But the problem now is the error message displayed into the field.

I have make 3 Divs

<div id="NameError"></div>
<div id="EmailError"></div>

<div id="CommentError"></div>

 

And I wand display the error messages into this divs

How can I make this possible??

How I make the errorPlacement to display the

errorPlacement: function(error, element) {
     
error.(name)appendTo("#NameError")
     
error.(email)appendTo("#EmailError")
     
error.(comment)appendTo("#CommentError ")

I know this code is not right, but I don’t know how to write
Any help would be greatly appreciated.

Thanks and sorry for my bad eagles .. :)