我想要做的是追加表格及其内容* test123之前</span>
标签关闭,但它不工作,不知道这个代码有什么问题? *。没有工作
jQuery代码
$('span[itemprop="description"]').append($('C1'));
HTML代码
<span itemprop='description'>test123</span>
this is outside of span tag<br>
<table width="200" border="1" class="C1">
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
</tr>
</table>
也'append'之后将其追加的东西进入你的span元素不 – slash197 2013-02-27 12:36:52
也许它只是。缺少:$('。C1')'获取C1类的元素?那是你想要做的吗? – 2013-02-27 12:37:28