I have a server running with Django. In a template I have an form with submit action wich send infromation to a views.py from an app.
So, when a user click on a button, he submit the information to Django, and to prevent the page to refresh, I've made a function that submits but doesn't refresh the page to keep some data on the page. This is the js function:
   $(function() {
      $('#Values_all_Form').submit(function(e){
        $.post('/en/projects/ford/submit', $(this).serialize(), function(e){ 
        });
        e.preventDefault();
      });
    });
How can I make in ajax or javascript an function, after submit to refresh or reload a Div where I have an table like this:
<div id="divResult">
    <table>
        <tr>
            <td>author</td>
            <td>qty</td>
            <td>Amount</td>
        </tr>
        {% for author, values in data.items %}
        <tr>
            <td>{{author}}</td>
            {% for v in values.0 %}
            <td>{{v}}</td>
            {% endfor %}
        </tr>
        {% endfor %}
    </table>
</div>