[ad_1]
I would really like your help.
Couldn’t find the solution on past posts.
I am trying to change the text of a specific td in a specific row.
So I got this code which I find the specific row:
$('#courses-table tr').each(function () {
if (this.children[6].innerText == newAssignment[3]) { // check courses
if (this.children[5].textContent == newAssignment[5].split(' ').slice(1).join(' ')) { // check route
if (this.children[4].textContent == newAssignment[4].split(' ').slice(1).join(' ')) { // check semester
console.log(this.getElementsByTagName('td')[3].textContent)
this.getElementsByTagName('td')[0].innerHTML = "TEST";
}
}
}
})
Now, after i find the row with the specific data, i want to change for example the td in position 5 to be something else.
But .innerHTML don’t work for me.
Do you guys have any suggestions for me?
10x
[ad_2]