<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>请教大侠们~~
<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>请教大侠们~~
其它的标签不能改动,就只能改动这个<font face="webdings" >1</font>
$(function(){
$(".aa font").replaceWith('<font>2</font>')
})
</script>
$(document).ready(function() {
$(".aa font[face='webdings']").each(function(index) {
$(this).text("2").removeAttr('face');
});
</script>