我想將id =「table_data」的完整表格行數據傳送到id =「table_data_two」的另一行。在按鈕將表格行數據移動到html中的另一行
<table border="">
<tr id="table_data">
<td>this data</td>
<td>this also</td>
<td>this too</td>
</tr>
</table>
<table border="">
<tr id="table_data_two">
</tr>
</table>
<button>click me</button>
請不要在你的問題的標題喊(不要全部使用大寫字母)... – Myst
歡迎堆棧溢出。你已經嘗試過這麼做了嗎?請回顧[預計需要多少研究工作?](https://meta.stackoverflow.com/questions/261592/how-much-research-effort-is-expected-of-stack-overflow-users)。堆棧溢出不是一種編碼服務。您需要研究您的問題,並嘗試在發佈之前親自編寫代碼。如果遇到某些特定問題,請返回幷包含[最小,完整和可驗證示例](https://stackoverflow.com/help/mcve)以及您嘗試的內容摘要,以便我們提供幫助。 – Sand
在SO和互聯網上有一堆關於這個問題的答案。只需搜索「JavaScript移動DOM元素」。 – Cully