I have the following object:
{
builders: [
{
name: "Branches > Build",
slaves: [
"slave-01.local"
]
},
{
name: "Branches > Build1",
slaves: [
"slave-02.local"
]
}
]
}
I want to update the html table td if their parent tr id matches the name attribute of the json.
<table>
<tr id="Branches > Build" class="odd">
<td>
value of slaves of Branches > Build should be here
</td>
<tr id="Branches > Build1" class="even">
value of slaves of Branches > Build1 should be here
<td>
</td>
<table>
How do I achieve this? I'm using jquery.
Btw. I can't get id's with no spaces so it must work with that.
id="Branches_Build1"fromid="Branches > Build1"