我想弄清楚如何添加:
<p id="sab-contact-tab"><a href="/contact" class="smcf-link"></a></p>
紧接着:
<div id="footer">
这是我的代码:
jQuery(document).ready(function() {
var prependHTML = "<p id="sab-contact-tab"><a href="/contact" class="smcf-link"></a></p>";
jQuery(prependHTML).prepend("#footer");
});
这段代码正确吗?如果不是什么是正确的代码?
谢谢,
迈克尔·萨布拉图拉