我想知道是否可以插入像使用jQuery插入的Joomla的HTML代碼jQuery中
$("#main_header").replaceWith("<div class='header_small'><div class='citation'>
//and here should come for example a module position <jdoc:include type="modules" name="right" style="css-teske" headerLevel="3" />
</div></div>");
感謝下列每一個建議
jQuery加載客戶端; Joomla標籤是在服務器端解析的。所以,不,你不能使用jQuery來改變Joomla標籤。但是,您可以使用jQuery將容器div設置爲'display:none'或類似的東西。 – Blazemonger 2012-01-09 19:02:27
是的,你說得對。謝謝。疲倦地思考這樣簡單的事情。 – lgt 2012-01-09 19:13:32