i have this script...
[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 theData = document.create TextNode(pbdcur aian);
var theTextarea = document.create Element('textar ea');
theTextarea.set Attribute('name ', 'items['+item_count+'][work_descriptio n]');
theTextarea.set Attribute('id', 'items['+item_count+'][work_descriptio n]');
theTextarea.set Attribute('rows ', '2');
theTextarea.set Attribute('cols ', '25');
label.appendChi ld(span);
theTextarea.app endChild(theDat a);
label.appendChi ld(theTextarea) ;
p.appendChild(l abel);
td.appendChild( p);
row.appendChild (td);
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 theData = document.create TextNode('Locat ion');
var theInput = document.create Element('input' );
theInput.setAtt ribute('type', 'text');
theInput.setAtt ribute('name', 'items['+item_count+'][pbdckdlok]');
theInput.setAtt ribute('size', '3');
theInput.setAtt ribute('value', pbdckdlok);
span.appendChil d(theData);
label.appendChi ld(span);
label.appendChi ld(theInput);
p.appendChild(l abel);
td.appendChild( p);
row.appendChild (td);
[/CODE]
actually i have one element textarea and five element input (the script only show for one creation of element input).
I want to get a value from those element, how can i get those value of elements, any idea??
[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 theData = document.create TextNode(pbdcur aian);
var theTextarea = document.create Element('textar ea');
theTextarea.set Attribute('name ', 'items['+item_count+'][work_descriptio n]');
theTextarea.set Attribute('id', 'items['+item_count+'][work_descriptio n]');
theTextarea.set Attribute('rows ', '2');
theTextarea.set Attribute('cols ', '25');
label.appendChi ld(span);
theTextarea.app endChild(theDat a);
label.appendChi ld(theTextarea) ;
p.appendChild(l abel);
td.appendChild( p);
row.appendChild (td);
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 theData = document.create TextNode('Locat ion');
var theInput = document.create Element('input' );
theInput.setAtt ribute('type', 'text');
theInput.setAtt ribute('name', 'items['+item_count+'][pbdckdlok]');
theInput.setAtt ribute('size', '3');
theInput.setAtt ribute('value', pbdckdlok);
span.appendChil d(theData);
label.appendChi ld(span);
label.appendChi ld(theInput);
p.appendChild(l abel);
td.appendChild( p);
row.appendChild (td);
[/CODE]
actually i have one element textarea and five element input (the script only show for one creation of element input).
I want to get a value from those element, how can i get those value of elements, any idea??
Comment