如何將兩個標籤附加到同一行?目前,這只是創建一個td標籤不會將一個標籤放在裏面。這是理想的結果。使用jQuery將兩個標籤附加到同一行
期望:
<td class="link-text"><a href="#">Click Here</a></td>
當前代碼:
var newRow = $('<tr>').attr('id', keyID);
newRow.append($('<td class="link-text">').text(artist_name));
newRow.append($('<td><a class="link-text" style="padding:5px;" target="_blank">').attr("href", link).text(link));
newRow.append($('<td class="link-text">').text(email));
檢查我的答案 –