E corretto cosi recuperi id
var idContenitore = $(this).find("p").attr("id");
cosi recuperi il testo
var testo = $(this).find("p").html()