Posted By

the_coder on 06/25/09


Tagged

contentEditable


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

vali29


DIV contentEditable attribute support Demo


 / Published in: HTML
 

  1.  
  2. <div id=d style="border: 1px solid black; height:200px">
  3. lipsum
  4. </div>
  5. <button onclick="document.getElementById('d').contentEditable=true;">Make it editable</button>
  6. </body>
  7. </html>

Report this snippet  

You need to login to post a comment.