Ajax load only one page div per Class

0

With ID I can guess, doing so:

$.ajax({
    url: "www.teste.com/recuperar-senha #senha",
    beforeSend: function(){
        $('.main').html("<p>Carregando...</p>");
    },
    success: function(r){
        $('.main').html(r);
    }

});

But if my file does not have an ID, how do I load just one div by picking up the class?

    
asked by anonymous 27.10.2017 / 18:56

0 answers