You can access this array by request.POST.getlist(‘terid[]’) in the view
in javascript:
$.post(postUrl, {terid: values}, function(response){
alert(response);
});
in view.py:
request.POST.getlist('terid[]')
It works perfect for me.
More Related Contents:
- How do I POST with jQuery/Ajax in Django?
- 403 Forbidden error when making an ajax Post request in Django framework
- Django JQuery Ajax File Upload
- Reload table data in Django without refreshing the page
- Redirecting after AJAX post in Django
- JQuery: post FormData AND csrf token together
- How to submit form without refreshing page using Django, Ajax, jQuery?
- My Own Like Button: Django + Ajax — How?
- Sending multipart/formdata with jQuery.ajax
- How to get a cross-origin resource sharing (CORS) post request working
- jQuery Ajax error handling, show custom exception messages
- Why is jQuery’s .ajax() method not sending my session cookie?
- How do I format a Microsoft JSON date?
- Submitting HTML form using Jquery AJAX
- jquery click doesn’t work on ajax generated content
- Submit form in rails 3 in an ajax way (with jQuery)
- Set Headers with jQuery.ajax and JSONP?
- AJAX jQuery.load versus jQuery.get
- How to call .ajaxStart() on specific ajax calls
- jquery ajax problem in chrome
- How to chain ajax calls using jquery
- Extracting Ajax return data in jQuery
- File upload using MVC 4 with Ajax
- What is the difference between XMLHttpRequest, jQuery.ajax, jQuery.post, jQuery.get
- Does Google crawl AJAX content? [closed]
- Select only specific dates in jQuery UI datepicker (date list comes from AJAX)
- jquery nested ajax calls formatting
- jQuery send HTML data through POST
- jQuery.getJSON not working properly in IE8 with gdata json-c. Why? [duplicate]
- How do you change the default widget for all Django date fields in a ModelForm?