Tuesday, April 10, 2012

jquery validation word count integration

How can I integrate word count into bassistance.de validation? For example, i dont want people to enter more than 50 words, and it should show an error to indicate it.



<form action="done.php" method="post" id="mainform"  class="validate">
<textarea name="message" rows="4" id="message" class="required" ></textarea>
</form>


Here is all I have, but i dont know where to go from here



$(document).ready( function() {
$("form.validate").validate({
submitHandler: function(form) {
form.submit();
}
})


});



any assistance here would be appreciated, i'm not familiar with this plugin at all.





No comments:

Post a Comment