我正嘗試在div #display
中加載一些內容。我已經在這裏閱讀了許多關於這個問題的問題,但仍然無法使其工作。我剛添加的用於測試目的的alert
函數沒有任何問題。無法加載div中的內容
這是我曾嘗試
$(document).ready(function(){
$('#townships').click(function() {
$('#display').load("helloworld.html");
alert("Hi");
});
});
我想這個下線。 helloworld.html
文件與主頁文件位於同一個文件夾中。
你也可以在這裏添加你的HTML嗎? – Andy
你包含jQuery庫嗎? – pes502
你想讓我在這裏添加helloworld.html的html代碼嗎? – Behroz