Skip to content
Advertisement

Tag: savechanges

JavaScript save value of div element

I have a simple text editor and I want to save its content, but it doesn’t work because it is not an input element. It is a div element which has contenteditable=’true’ so I can write inside it. My question is that is there any way to save the characters that the user types in it? I have tried the

Advertisement