cheking form fields with ajax
Hello,
I need help for sending emails from forms with jquery/ajax method.
My pb occured when I check the form fields before sending the data to the server.
I have a field for the message and I check if it has at least 6 caracters every is ok if the user doesnt press enter before the 6 first caracters but a message contents header like 'Hello,' and then you rpess the enter key to go to another line.
So my pb is if you press the enter key to go to the next line before having 6 caracters I have the error.
How can I a solution? Of course I can also just check if the field is not empty but I prefer more secured solution. Thanks for your help.
Sorry for my english, hope that was clear.