Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

?Value from TextBox created using InnerHTML property

Status
Not open for further replies.

greyone

Programmer
Dec 14, 2000
200
CA
how do i extract values from the text boxes which i'm writing dynamically using the innerHTML property

please help


 
hi anna, culd u explain a bit more, plz...
 
ok, i think u're talkin about our prev thread, am i rite?
if i am, here u r:
u have 2 generate names of those textfields just like the values, in the same loop:
for (ii=0; ii<num; ii++) {
data = data + &quot;<tr><td><input type='text' size='20%' align='left' name='textnum&quot;+ii+&quot;' value='&quot;+dattano[ii]+&quot;'></td>&quot;+ &quot;<td><input type='text' size='40%' align='left' name='textname&quot;+ii+&quot;' value='&quot;+dattaname[ii]+&quot;'></td>&quot;+ &quot;<td><input type='text'size='40%' align='left' name='textval&quot;+ii+&quot;' value='&quot;+dattavalue[ii]+&quot;'></td></tr>&quot;;
}

and then use smth like this:

var str=document.forms.ff1.textval3.value

& it shure might be a loop 2...

regards, vic
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top