jQuery validation code
This confuses me:

name.val() === nameVal


The variable nameVal is equal to the value attribute of name. And, the calling val() on name returns the value attribute of name so of course they are going to be equal.

I may be missing something here, but I think this is unnecessary.



Long chunks of mush like this:

(name.val() === nameVal || name.val() === '' || name.val().length &lt; 3) ? name.addClass(error) : name.removeClass(error);
            (comment.val() === commentVal || comment.val() === '' || comment.val().length &lt; 3) ? comment.addClass(error) : comment.removeClass(error);
            (!validateEmail(email.val())) ? email.addClass(error) : email.removeClass(error);


and this:

!(name.val() === nameVal || name.val() === '' || name.val().length &lt; 3) &amp;&amp; 
            !(comment.val() === commentVal || comment.val() === '' || comment.val().length &lt; 3) &amp;&amp; 
            validateEmail(email.val())


are in no way whatsoever readable. You need to either


Break this up. Maybe everything here is not necessary.
Split this into variables and check with the variables.


I think you should go with the first option, because these can be simplified:



1:

As I stated above, having

name.val() === nameVal


is unnecessary. You can just remove this.



2:

The value "" is called a falsey value. That means that "" can be treated as though it were false.

So, for example, this here:

name.val() === ''


can be reduced to:

!name.val()




Constantly calling the .val function on these elements in each of your conditionals is inefficient. You should store the result of .val() in a variable, and just use that for the conditionals (I think nameVal should already hold the .val() for name).



Now, for example, one of your conditional chunks becomes:

( !nameVal || nameVal.length &lt; 3) ? name.addClass(error) : name.removeClass(error);

(! commentVal || commentVal.length &lt; 3) ? comment.addClass(error) : comment.removeClass(error);

(!validateEmail(email.val())) ? email.addClass(error) : email.removeClass(error);


Where commentVal is comment.val() and nameVal is name.val()