Suraj Air Suraj Air - 2 years ago 93
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.

Answer Source

use jQuery and do

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

also look up these links:

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download