如何使用jquery更改具有属性值的相应节点的文本
<div class="rating">
<h2 typename="First">One is First</h2>
<h2 typename="Second">Two is Second</h2>
<h2 typename="Third">Three is Third</h2>
</div>
至
<div class="rating">
<h2 typename="First">First</h2>
<h2 typename="Second">Second</h2>
<h2 typename="Third">Third</h2>
</div>
这里我想h2
用对应的属性值来改变文本typename
。怎么做?