Good afternoon, I want to show the content within each div of this, but not to achieve:
<?php
for ($i = 1; $i < 10; $i++) {
?>
<div class="cada-texto">
<a href="">titulo <?= $i ?></a>
<div class="conteudo">
texto texto <?= $i ?>
</div>
</div>
<?php
}
?>
<script type="text/javascript">
$(document).ready(function(){
$('#mostra').click(function(){
//mostra div
$('.cada-texto').show();
});
$('#fecha').click(function(){
//oculta div
$('.cada-texto').hide();
});
});
</script>
I click on the links generated by the code in php, and it continues to show nothing.