我打電話給下面的代碼加載到div的HTML。jquery加載html和隱藏並顯示
$('#strap').click(function(e) {
e.preventDefault();
$('#collection_content').load('collection_sub.html');
});
我呼籲這使它消失
$('#collection_content').hide();
但是當我嘗試再次加載相同的HTML文件,它不會顯示任何東西..就是它,因爲它是隱藏?我應該如何讓它再次出現?現在,'collection_sub.html'是靜態的,但它將被替換爲一個PHP動態頁面,所以我想重新加載它..有沒有辦法做到這一點?
謝謝。
很好。非常感謝。 – user826323