Oct 01, 2009, 12:37 PM
HTMl Editor Clear Text.
Hi.
I´m cleaning the text of HtmlEditor with this code.
What´s wrong..?
Any Idea..?
Thanks..
I´m cleaning the text of HtmlEditor with this code.
function limpiar() {
frm = document.getElementById('form1');
var window = <%= Window1.ClientID %>;
if (!frm) return;
for(i=0; i<frm.elements.length; i++) {
// alert(frm.elements[i].id + ' ' + frm.elements[i].type);
if (frm.elements[i].type == 'text')
{
frm.elements[i].value = '';
}
else if (frm.elements[i].type == 'textarea')
var htmlEditor = document.getElementById(frm.elements[i].id); htmlEditor.value = '';
}
}
}
but not work...?What´s wrong..?
Any Idea..?
Thanks..