Is there a way to limit the number of characters in a textarea inline instead of defining a function??
Here is what I tried, no errors in chrome:
<textarea id="comments" name="comments" rows="10" cols="30" onkeydown="function(){if(document.getElementById('comments').value.length>=5) { return false; }}"></textarea>