There is a source code snippet:
<tr id="file_theme_estimates_rus"> <td><span class="five">5</span></td> <td></td> <td><span class="two">2</span></td> <td><span class="three">3</span></td> <td></td> <td></td> </tr> <tr> <td id="file_estimates_rus"></td> </tr>
There is a broken Javascript function:
document.getElementById("file_estimates_rus").textContent = document.getElementById("file_theme_estimates_rus").getElementsByTagName("span").textContent;
What should I do to make the Javascript function work? All span elements need to appear in the <td id="file_estimates_rus">...</td> . Those. in this case, after executing the Javascript function, it should turn out like this:
<tr id="file_theme_estimates_rus"> <td><span class="five">5</span></td> <td></td> <td><span class="two">2</span></td> <td><span class="three">3</span></td> <td></td> <td></td> </tr> <tr> <td id="file_estimates_rus"><span class="five">5</span><span class="two">2</span><span class="three">3</span></td> </tr>
Please write a Javascript function to help me do this.