我的HTML內容是這樣的:
<table>
<tr>
<th>Log1 Column</th>
<th>Log2 Column</th>
<th>Log3 Column</th>
</tr>
<tbody id="bottomLogTable"></tbody>
</table>
不知怎的,我不是從$。員額在#bottomLogTable位置得到返回的數據,但螢火說200 OK,這意味着返回的數據。
$("#logClick").live("click", function()
{
$.post("node2542.txt", function(data)
{
$("#bottomLogTable").append(data); // not display returned data
$("#bottomLogTable").html(data); // also not display returned data
});
});
任何建議或想法,讓我朝着正確的方向去解決這個問題?
發佈連接到一個txt文件?這個文件的內容是什麼? –
這應該工作,假設'數據'包含錶行。 –
我有我的tr行信息在這個文件中.... –