What are the cons of using a contentEditable div rather than a textarea?

It would work fine, but it’d be a little bit more difficult than a form, simply because you’re going to have to wire up your own logic to make the button’s click event track down the correct div, get its content, and then perform the submission. The advantage of a textarea is that the browser takes care of all that for you.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)