So basically what I want is for the submit button to be disabled until a certain word count has been reached in the text area.
I have had a look around and tried to find
You catch the submit event, you count the words in the textarea and only submit if it is high enough. Example:
$('#targetForm').submit(function(event) {
var text = $("#myTextarea").val();
text = text.split(" ");
// check for at least 10 words
if(text.length < 10){
// prevent submit
event.preventDefault();
return false;
}
});
DEMO