I want to give a replace in the tag <a>
by <span>
.
I tried to do this, but it does not work:
$(document).ready(function() {
$('#lista-noticias .box-noticia .conteudo-noticia').each(function() {
alert("teste");
});
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script><divid="lista-noticias">
<div class="box-noticia">
<div class="conteudo-noticia">
<a href="qualquer.coisa1.html">
</div>
</div>
<div class="box-noticia">
<div class="conteudo-noticia">
<a href="qualquer.coisa2.html">
</div>
</div>
<div class="box-noticia">
<div class="conteudo-noticia">
<a href="qualquer.coisa3.html">
</div>
</div>
<div class="box-noticia">
<div class="conteudo-noticia">
<a href="qualquer.coisa4.html">
</div>
</div>
</div>