Questions tagged [serializearray]
79 questions
0
votes
1 answer
jquery serialize collecting multiples form which group values by name
How to collect multiples form input and group the output into string which combines values by name
For example:

Denis
- 73
- 13
0
votes
1 answer
I can't seem to add to the array generated by serializeArray
Here's the code.
var postData={};
event.stopPropagation();
postData.action='preview';
postData.data=$("form#gaarrl").serializeArray();
var n=[];
n['name']='media';
n['value']=imgName;
postData.data.push(n); …

user1424074
- 137
- 1
- 7
0
votes
1 answer
How to upload image while using serialize Array in JavaScript?
I am working on a form which need to insert some data with an image without reloading the page. In my side everything is working fine when there is no image filed in the form, but if there is an in my form, then my code is not…

Bearded
- 45
- 8
0
votes
1 answer
Jquery serializeArray not getting all fields
I have this HTML:

ehmhrgelcighsawmlv
- 309
- 1
- 3
- 14
0
votes
1 answer
Does serializeArray sanitize input before being passed to eval?
Out of curiosity since eval is "evil". Would serializing an array protect against xxs attacks? From my understanding the serializeArray() method creates a JavaScript array of objects, ready to be encoded as a JSON string. If so, what would be a…
user11006286
0
votes
1 answer
How to use nested HTML as JavaScript Object/Array keys
I am trying to prepare the following inputs
to use them in an ajax function to validate them with PHP. The array…

Alex Schwifty
- 59
- 3
- 11
0
votes
1 answer
Serialize form using SerializeJSON
I want to serialize my form using SerializeJSON and I have a div which have multiple tab inside and each tab have multiple form. How can i loop inside the div to get the tab and inside each tab I want to get the form so I can serialize it and after…

fatin amirah
- 101
- 2
- 12
0
votes
1 answer
Jquery SerializeArray and Push Object list
I'am SerializeArray using and try to push object list but always is null on server side
var $form = $('#personelReqForm');
var model = $form.serializeArray();
model.Leavemembers = [],
model.MemberLanguages = [];
…

user3809557
- 1
- 3
0
votes
2 answers
Getting HTML custom data-* attributes from radio buttons on form submit
Is there a way to get the custom HTML data-* attributes for the selected radio button when you submit a form? The value does not seem to get picked up by serializeArray().
HTML