13
rated 0 times
[
17]
[
4]
/ answers: 1 / hits: 31850
/ 9 Years ago, fri, april 3, 2015, 12:00:00
I'm trying to catch the value inside this div, which is editable:
<div class=editable-div contentEditable=true>Hey</div>
I figured I could do this simply via JavaScript:
var changedText = $('.editable-div').innerHtml
However, this variable will always return undefined, which confuses me.
Can someone enlighten me on how to reach this value?
More From » jquery