471,075 Members | 1,249 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,075 software developers and data experts.

Cannot get data out of a table

Hello to all,

I have a table. I am trying to get a value out of a table but it is
not working.

What is the problem? If I put an INPUT field into a cell of a table,
what operations should I do to get the data out?

Any help is appreciated :-)

Regards.
<body>
<xml id="xmldso_list" src="cd_catalog.xml"></xml>

<table border="1" bgcolor="yellow">
<tr align="left"><th>Title: </th>
<td><input type="text" name="td_title"></td></tr>

<tr align="left"><th>Artist: </th>
<td><input type="text" name="td_artist"</td></tr>

<tr align="left"><th>Year: </th>
<td><input type="text" name="td_year"</td></tr>

<tr align="left"><th>Country:</th>
<td><input type="text" name="td_country"></td></tr>

<tr align="left"><th>Company:</th>
<td><input type="text" name="td_company"></td></tr>

<tr align="left"><th>Price: </th>
<td><input type="text" name="td_price"></td></tr>
</table>

<input type=submit value="Addrow" onclick="addone(this)">
Jul 23 '05 #1
1 1031

document.getElementsByTagName('input')['td_title'].value
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by hjyn | last post: by
reply views Thread by Matthew Louden | last post: by
7 posts views Thread by Wayne Brantley | last post: by
3 posts views Thread by epearce301 | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.