tags:

views:

11

answers:

0

How do you edit text with DOM cms-like.

//now editing in textarea and clicks button which have onclick='editText()'

function editText() {
var myvar = document.getElementById('myTextArea');
alert(myvar.textContent);//alerts oldtext still ?
//would like it to have alerted the now new and edited text from textarea    
}