Grab Text From First TD From Dynamic Table??
Hey Guys,
I built an inventory list by pulling in data from a database and placing it in a table. I built it so that the user can add, edit and delete inventory items. The first TD is the items name. I want to grab that specific name for that row item and place it in another TD. I want to use jQuery for this. Would i have to loop through that table and find the first TD of every row?
- <table>
- <tr>
- <td class="name">Name of item</td>
- <tr>
- <tr>
- <td class="description">Description of item</td>
- <tr>
- <tr>
- <td class="addName">Add name of item here using jQuery</td>
- </tr>
- </table>
Any help would be appreciated.
Thanks,
stalwil