I have this small block of code for sending an e-mail from the user's profile, that is suppose to show an error or a success message.

```
// Mensagem para o dono do anúncio
$('#formulario_anunciante').on('submit', function (e) {
    e.preventDefault();

    $.ajax({
        type: 'POST',
        url: '/auto/usuario/send_contact_email',
        dataType: 'json',
        cache: false,
        data: $(this).serialize(),
        success: function (data) {
            // It reaches here
            console.log(data);
            //
            if (data.type === 'success') {
                $(this).find('div.msg').removeClass().addClass('msg alerta_sucesso').html(data.msg).fadeIn().delay(5000).fadeOut();
            } else {
                $(this).find('div.msg').removeClass().addClass('msg alerta_erro').html(data.msg).fadeIn().delay(5000).fadeOut();
            }
        }
    });
});

```

The code is reaching the `console.log`, showing in the console the returned message, but does not do anything with the `div.msg` tag in my form. It is inside of the `#formulario_anunciante` for sure. Also, for testing purposes, I tried to remove the class `msg`, but the tag seems not to be reachable.

I already tried to add `JSON.parse(data)` and remove the `dataType: 'json'` but nothing works.