I have a basic DOM "outline" that contains a table with dummy data like this:
<table>
<tr>
<td>name</td>
<td>phone</td>
</tr>
</table>
My script uses this as a dummy row to clone and replace the text between the TD tags with text from a database. Without copying the whole script here, here are two different things I've tried:
newRow.find("td.name").text(participant.name);
newRow.find("contains("phone")").text(participant.homePhone);
Neither one works. The script clones and displays the rows just fine, but I have 30 rows of "name" and "phone".
I used Firebug's console.log to debug and I am sure that it's got the data correctly from JSON, loaded into the "participant" parameter. What am I doing wrong?