J'ai un petit soucis avec l'utilisation de mon tableau.
j'ai un code comme sa :
et au niveau de la sortie j'ain sa :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12 var val = new Array; $(':checkbox:checked').each(function(i){ val.push(this.value) ; }); jQuery.post("/network/site/", { csrfmiddlewaretoken: $("input[name=csrfmiddlewaretoken]").val(), _selected_action:val.valueOf(), action:'SYNCHRONISER', select_across:0, } );
je comprend pas pour quoi il ajoute des crochets au niveau de la sortie _selected_action[]_selected_action[] 1545
_selected_action[] 1544
_selected_action[] 1542
action SYNCHRONISER
csrfmiddlewaretoken FLZfmLh9M0NjnCOY7fCc6H29ciN0gyHl
select_across 0
Partager