I want to use jquery to limit the number of characters in an editable div (or form input).
make use of maxlength in input tag
maxlength
input
<input type="text" maxlength="20" />
2.1m questions
2.1m answers
60 comments
57.0k users