I can not write the return inside the HTML element on success,
it writes console.log
, but not html.
Code:
$(document).ready(function ()
{
$('.comentarios').click(function () {
$(this).siblings('.texto').prepend("<div>inicio da funcao<div>");
$.ajax({
method: 'get',
url: url_destino,
dataType: 'html',
success: function (retorno) {
console.log(retorno);
$(this).siblings('.texto').prepend("<div> info</div>");
}
});
});