I need to change (just) the h3
tag to h2
, keeping all default html elements inside, this code are erasing all html contents !!
<script type="text/javascript">
$(function () {
$('.sideMenu h3').replaceWith(function () {
return "<h2>" + $(this).text() + "</h2>";
});
});
</script>
<div class="sideMenu">
<h3 class="sapanos">
<span></span>
<a href="#" title="Sainos">Sapanos</a>
</h3>
</div>
" + $(this).text() + "
"`? – DontVoteMeDown May 05 '15 at 19:58