0
Dear Mr(a)s,,
I have a div that is filled via ajax:
    function atualizaConteudo(){
        $.ajax({
            url: 'getters/conteudo_amanha.php',
            success: function(data) {
                $('#conteudo_amanha').html(data);
            }
        });
    }
    atualizaConteudo();
The div is as follows:
    <div id="conteudo_amanha">
        <button type="button" class="novo-detalhe" data-id_conteudo="4">
            Mostrar conteudos
        </button>
        <div id="conteudo_4" style="display: none">
            Conteudos recuperados
        </div>
    </div>
I try to do the slideToggle():
    $('.novo-detalhe').on('click',function(){
        var id_conteudo= $(this).data('id_conteudo');
        $('#conteudo_'+id_conteudo).slideToggle();
    });
I need the recovered div via ajax (#content_4), to be hidden/shown when the user clicks the button, I put the div inside the page (instead of using ajax to insert into the div #content_tomorrow)worked, but I’m unable to make it work using ajax request.
I’m new to ajax and jquery...
Oops, it worked, thanks
– JeffersonCarlosBD