Hello all,, i have a question, please help me to find out
i have this script (in js function)
[CODE=javascript]var td = document.create Element('td');
var p = document.create Element('p');
var label = document.create Element('label' );
var span = document.create Element('span') ;
var theTextarea = document.create Element('textar ea');
theTextarea.set Attribute('name ', 'work_descripti on');
theTextarea.set Attribute('valu e','');
span.appendChil d(theData);
label.appendChi ld(span);
label.appendChi ld(theTextarea) ;
p.appendChild(l abel);
td.appendChild( p);
row.appendChild (td);
theTextarea.onc hange = function(){theT extarea.getAttr ibute('value')) ;}
[/CODE]
With command "theTextarea.on change...", i want to get a value from html object form (textarea) that has been input by user.
But with that command, i always get null (empty string) value.
Any idea??thanks
i have this script (in js function)
[CODE=javascript]var td = document.create Element('td');
var p = document.create Element('p');
var label = document.create Element('label' );
var span = document.create Element('span') ;
var theTextarea = document.create Element('textar ea');
theTextarea.set Attribute('name ', 'work_descripti on');
theTextarea.set Attribute('valu e','');
span.appendChil d(theData);
label.appendChi ld(span);
label.appendChi ld(theTextarea) ;
p.appendChild(l abel);
td.appendChild( p);
row.appendChild (td);
theTextarea.onc hange = function(){theT extarea.getAttr ibute('value')) ;}
[/CODE]
With command "theTextarea.on change...", i want to get a value from html object form (textarea) that has been input by user.
But with that command, i always get null (empty string) value.
Any idea??thanks
Comment