Questions tagged [serializearray]
79 questions
0
votes
1 answer
serializeArray not working for selectbox
I am trying to convert form data to json and read the values of the fields that are modified upon clicking respective checkbox. This is working for text fields but not for select box. Can any one please take a look at the fiddle and help me read the…

An User
- 221
- 6
- 23
0
votes
2 answers
javascript, remove identical items from array
I do an ajax call in a lightbox script which returns a form.
when the form is loaded I call var initial = $('form').serializeArray();
when the form is submitted I call var final = $('form').serializeArray();
which gives me two arrays of…

Hailwood
- 89,623
- 107
- 270
- 423
0
votes
1 answer
Get id from serializeArray
I have the following form
0
votes
2 answers
How to change serializeArray to normal object
I using serializeArray to get all element and I am getting object like
[{name: "code[1][barcode]", value: "45534"},
{name: "code[1][rf_id]", value: "535353"},
{name: "code[1][serialize]", value: ""},
{name: "code[2][barcode]", value:…

Niklesh Raut
- 34,013
- 16
- 75
- 109
0
votes
0 answers
Ajax serializeArray() to Codeigniter batch_insert
this is simplified code of my problem,
the form contains n dynamic inputs. the form data posted by ajax using serializeArray() method. so i wanted to do is, get those data array and batch insert to database.
thanks you.
HTML
0
votes
1 answer
Serialized data issue in wordpress
I am facing an issue in wordpress serialized data. I am developing a custom plugin which is in relation with woocommerce. I have added a checkout section in woocommerce settings section. Also I am providing same settings update form in my plugin…

Hardik
- 1,429
- 2
- 19
- 37
0
votes
2 answers
How to serialize table data for ajax
Bootstrap 3 modal table contains rows with input, textarea and select elements.
All rows have same columns with same elements. Elements in every row have same names.
Table data should be send using jquery ajax call using button click.
I…

Andrus
- 26,339
- 60
- 204
- 378
0
votes
1 answer
Serialize form data for Web Api put request MVC 5
I have a strongly-typed Razor View that shows a record for a class. This view displays a form that the user can use to update the record (a dropdown, a few checkboxes, and a few textboxes). When the user modifies a field by changing the value of a…

Keith Harris
- 1,118
- 3
- 13
- 25
0
votes
2 answers
data.push is not working with ajax
I am trying to send an extra data with ajax. I used (form).serializeArray() and added an extra data. when I am trying to send it via ajax, the alert showed me that the extra data wasn't added to the the serialized array.
This is my code:
…

Mira Kamali
- 70
- 7
0
votes
5 answers
jQuery SerializeArray and Not selector
I am using the .serializeArray function to gather all of the inputs of a form but I want to exclude inputs within a certain div class. I thought the .not() selector would do this but it does not appear to be working.
At its most basic level here is…

Nate23VT
- 423
- 8
- 27
0
votes
1 answer
AngularJS Serialize Form Inputs without Unique ID
There is an array of questions that are displayed on the form. I want to get all the answers into an array that I can push to Firebase.
This question (Angularjs equivalent to serialize) is pretty similar. However, I do not have ids per question and…
0
votes
1 answer
JQuery: serializeArray() performance
I've found two different ways to find data entered into a form and am not sure which one to use. I will be working with a fairly big form, so performance is important. The first option uses .serializeArray() and the second one uses…

Bryan
- 2,951
- 11
- 59
- 101
0
votes
1 answer
How to submit especific group of form inputs using ajax
I have a huge form to submit (more than 1000 inputs in array - this is a problem for php +5.3 see max_input_vars limits) in php.
I don´t need to submit everything, only the group of modified inputs where the reference is a select input. I'm trying…

Renato Pirei
- 60
- 9
0
votes
3 answers
How to convert serialize array value to JSON in javascript
i have serialize array like this
rate_3=26&rate_8=67&rate_12=98 etc..,
now i need to change this array as json type
{
"ID": "3",
"Rate": "26"
},
{
"ID": "8",
"Rate": "67"
},
{
"ID": "3",
…

Munna Babu
- 5,496
- 6
- 29
- 44
0
votes
2 answers
how to save serialize array of javascript value store in PHP on SUBMIT
I m using jquery datatables first time, so now i done table like this
everything works perfectly. now i m using this below javascript code
$(document).ready(function() {
$('#example').dataTable(
{
"pageLength": 50,
…

Munna Babu
- 5,496
- 6
- 29
- 44