javascript - How to set max value length for div with attribute contenteditable -
actually there attributes input fields...
one of these attributes maxlength
denies user input more characters or numbers specified.
is there way set attribute div has property contenteditable
?
of course write jquery or javascript function done wondering if there property this. , think, not necessary re-invent wheel :)
the answer no. docs, maxlength works input type.
the maxlength attribute specifies maximum number of characters allowed in
<input>
element.
you need use scripting language(like javascript , jquery did) make work on contenteditable div.
Comments
Post a Comment