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

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -