See here: http://jsfiddle.net/zYcJm/
The jQuery should be validating each field to check if they contain text and also if the email is valid. But:
- Validation for the message (id=message) doesn’t seem to work, if you click send with nothing in the message box you do not get an error, but you should.
- If you enter an invalid input and click send and then change your input to make it valid the Send button remains unclickable.
Where are the problems in my code?
You leave a white space in your
textarea<textarea name="message" placeholder="your message here" id="message" class="message"> </textarea>try to fix this and the problem should be solve.