Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

ajax django send array

$('.btn-group').find('#mark_as_done').on('click', function() {
    var tasks = grab_selected();

    $.ajax({
        type: 'POST',
        url: '/edit_lists/',
        data: {'tasks[]': tasks},
    });
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #ajax #django #send #array
ADD COMMENT
Topic
Name
5+5 =