日期:2014-05-16  浏览次数:20298 次

关于jquery更改html标签问题
<div class="aa">
<span class="aa_a">
<font face="webdings" >1</font>
</span>

<a href="index2.html">
<font face="webdings" >1</font>
</a>
</div>

我是想用jquery把class="aa"下面的
<font face="webdings" >1</font>
都替换成:
<font>2</font>

请教大侠们~~

------解决方案--------------------
<script>
$(function(){
$(".aa font").replaceWith('<font>2</font>') 
})
</script>