I want to use jquery to limit the number of characters in an editable div (or form input).
$('#id').keypress(function(e) { var foo = $(this).val() if (foo.length >= 14) { //specify text limit return false; } return true; });