我正在尝试将一些 HTML 添加到一个类中......任何想法为什么下面不起作用?
查询:
$("ul#breadcrumbs li[media='print']").append("<strong>Hello</strong>");
HTML:
<ul id="breadcrumbs">
<li class="">
<a href="supporting-overview.html">Supporting Units</a>
</li>
<li class="">
<a href="literacy-and-learning.html">Language of geography</a>
</li>
<li class="active">
<a href="literacy-and-learning.html">literacy and learning</a>
</li>
</ul>