Hey!
I'm trying to validate a textarea so a user can't add a new empty message via tinyMCE textarea.
But it just don't seems to work.
What am i doing wrong ?
JS:
var msg = $("#msg");
if(msg.val() == ''){
$("#msg_error").html("* Can't add an empty message");
}
Textarea
<textarea rows="5" cols="35" id="msg"></textarea>