【发布时间】:2016-06-13 17:22:26
【问题描述】:
如何将2990 kr 文本转换为h1?
<div class="productPrice">
<span>2 990 kr</span>
</div>
Alt 1 http://api.jquery.com/html/
$(".productPrice").html("h1");
Alt 2 http://api.jquery.com/text/
$(".productPrice").text("h1");
【问题讨论】:
-
没有没有通过.replaceWith解决
标签: javascript jquery html jquery-selectors