Suraj Air Suraj Air - 11 months ago 46
HTML Question

get the text content from a contenteditable div through javascript

I want retrieve the text content from a contentEditable div through javascript. What are the options of doing this? I've tried innerHTML but it doesn't work.


use jQuery and do

var content = $('#my-contenteditable-div').html();

also look up these links: