【发布时间】:2013-10-30 14:19:00
【问题描述】:
我想用 jQuery 将 itemprop 添加到 span 标签。
我的正确代码是:
<div class="top-telephone"><span>+00 00 00 00 00</span></div>
我希望我的代码看起来像:
<div class="top-telephone"><span itemprop="telephone">+00 00 00 00 00</span></div>
我尝试使用jQuery('span[itemprop="telephone"]').append(jQuery('.top-telephone'));,但这对我不起作用。
【问题讨论】:
标签: jquery html microformats