Cannot get data out of a table

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • milkyway

    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"><t h>Title: </th>
    <td><input type="text" name="td_title" ></td></tr>

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

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

    <tr align="left"><t h>Country:</th>
    <td><input type="text" name="td_countr y"></td></tr>

    <tr align="left"><t h>Company:</th>
    <td><input type="text" name="td_compan y"></td></tr>

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

    <input type=submit value="Addrow" onclick="addone (this)">
  • Rob B

    #2
    Re: Cannot get data out of a table


    document.getEle mentsByTagName( 'input')['td_title'].value


    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!

    Comment

    Working...