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
Try out below lines of code,
$(document).ready(function() {
$(".submit-name").attr("disabled", "true");
var minLength = 100;
$("#your-text-area").bind('keyup', function(event) {
var String = $("#your-text-area").val()
if (String.length >= minLength ) {
$(".submit-name").removeAttr("disabled");
} else {
$(".submit-name").attr("disabled", "true");
}
});
});