0
I cannot write the return inside the HTML element in case of success,
he writes the console.log
, but not in 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>");
}
});
});
The first . prepend() can write? The DOM structure is correct so jquery can find the right place to write?
– Daniel Costa