add new buttons dynamically into DataTable jquery
<p>I've successfully implemented create button, and it creates OK into my datatable, but I don't know how to insert buttons in that new row. Please see picture:
<a href="https://i.stack.imgur.com/xhV85.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xhV85.png" alt="enter image description here"></a> </p>

<p>Note: I have hidden column ID.
Here is my JS:</p>

<pre><code>$('.button14').click(function () {

        $.ajax({
            url: "/AdeccoViews/CreateAdeccoView",
            contentType: 'application/json;',
            data: JSON.stringify({ date: document.getElementById('datepickerCreateModal').value, client: $('#Client :selected').val(), eventType: $('#Event :selected').val() }),
            //data: JSON.stringify({ id: t.row('.selected').data()[0] }),//pravi kod
            type: 'POST',
            success: function (result) {
                if (result.id &gt; 0) {t.row.add([
                            result.id,
                            document.getElementById('datepickerCreateModal').value,
                            $('#Client :selected').text(),
                             $('#Event :selected').text(),
                             result.name,
                             'buttonEdit, buttonDelete'@*,
                             '@Html.Raw(@"&lt;button type=""button"" data-id=""65"" class=""btnEdit"" data-toggle=""modal"" data-target=""#modalFirst""&gt;Edit&lt;/button&gt;
                &lt;button type=""button"" data-id=""65"" class=""button13""&gt;Delete&lt;/button&gt;")'*@
                ]).draw(false);
                }
                $('#modalCreate').modal('toggle');
                swal("Dodato!", "Novi je dodat!", "success");
            },
            error: function (valid) {
                //window.location.href = "/Views/ERROR";
                swal("Došlo je do greške!", "Molimo vas da pokušate ponovo!", "error");
            }
        });
    });
</code></pre>

<p>edit: <code>success: function (result) {
                    if (result.id &gt; 0) {t.row.add([
                                result.id,
                                document.getElementById('datepickerCreateModal').value,
                                $('#Client :selected').text(),
                                 $('#Event :selected').text(),
                                 result.name,
                                t.row.add(result)
                                ]).draw(false);
                    }
                    $('#modalCreate').modal('toggle');
                    swal("Dodato!", "Novi je dodat!", "success");
                }</code></p>