<div class="item" onclick="location.href='a1.html'"></div>
<div class="item" onclick="location.href='a2.html'"></div>
<div class="item" onclick="location.href='a3.html'"></div>
<div class="item" onclick="location.href='a4.html'"></div>
<div class="item" onclick="location.href='a5.html'"></div>
$('.item').each(function() {
$(this)[0].replace('div', 'a')
})
divすべてのタグをタグに変更することはできaますか? 上記のコードを試しましたが、うまくいきません。何かアイデアはありますか?
ありがとう