1
Good night,
I’m creating a CMS based on bootstrap php and ajax what happens to me and that I can send the data of form all by method POST minus the value of the textarea always returns empty I am using the tinymce as an html editor.
Code used
<script> 
$(document).on("click", "#novo", function(e) { 
    var postData = $("#form_novo").serialize();
    var titulo = $("#titulo").val();
    var url = $("#url").val();
    if(titulo === '' || url === ''){
        toastr.error('Preencha os campos obrigatórios!', 'Campos');
    }else{
        e.preventDefault();
        $.ajax({
            type: "POST",
            url: "modulos/footer/guardar.php",
            data: postData,
            cache: true
        }).done(function(msg) {
            toastr.success('Dados guardados com sucesso!', 'Footer');
        }).fail(function(data) {
            toastr.error('Ocorreu um erro!', 'Erro');
        });
    }
});    
</script>
I ended up opting for the solution 2 seems simpler and worked right. thanks for the help
– César Sousa