Questions tagged [serializearray]
79 questions
0
votes
1 answer
nested json using serializeArray() in jquery
To create a nested JSON from a form using serializeArray() in jquery.
For example :
{
"glossary": {
"title": "example glossary",
"GlossDiv": {
"title": "S",
"GlossList": {
"GlossEntry": {
…

Chithra Mohan
- 199
- 1
- 2
- 6
0
votes
2 answers
How to return a serialized array in JavaScript/jQuery?
I have the following problem:
I have a form and I want to catch the input data. When I want to obtain string, which stores the input from this form, I simply do:
JSON.stringify($('form').serializeArray())
But instead of obtaining string, I would…

user3764429
- 402
- 2
- 12
0
votes
1 answer
Convert a string to a valid json object
I am trying to return a valid JSON object from a string which contains the values from a form, however, using JavaScript JSON.parse returns an array of char values and not a JSON object. Below is my code:
…

SomeoneElse
- 486
- 1
- 6
- 22
0
votes
1 answer
passing Serialize array to database using ajax
i have a html form code
$resulta = mysql_query("SELECT * FROM tblquestions WHERE subject = '".$subject."' ORDER BY rand()"); // dahil dyan, nag erro ung counting ng tamang sagot
$tbl="";
$tbl = '

Nixxhalle
- 97
- 3
- 5
- 10
0
votes
1 answer
post special char by ajax serializeArray()
I am trying to post whole form data by ajax. My sample code is here:
$.ajax({
url: "@Url.Action("SaveTPGeneralInfo", "Techpack", new { area = "OMS" })",
data: $('#FormId').serializeArray(),
type: 'POST',
…

raisul
- 640
- 1
- 5
- 26
0
votes
1 answer
serializeArray observation with ID and Name attributes
I've noticed that if you exclude a Name and ID from a form element serializeArray will not return it's value. Is this correct/by design? Just curious...
0
votes
0 answers
SerializeArray not working in IE10
I am using serializeArray to send form data to a php page. When the browser (ie10) is in standards mode, it doesn't work. However, when the browser is in quirks mode it works fine. I know that means there is some html that is not standards…

Mike
- 1,718
- 3
- 30
- 58
0
votes
1 answer
Formly: How to receive data in JSON?
Link: http://thrivingkings.com/read/Formly-The-form-glamorizer-for-jQuery
I am making a contact form using Formly and I was wondering how you actually send the message to your server/ to an email address.
Their example…

techatheart
- 3
- 1
0
votes
2 answers
Not able to get nested table input elements into jQuery array
I know this shouldn't be this hard, but I need another pair of eyes because I'm beating my head against a wall.
I have a NESTED table with an ID such as:
…
![]()
gtr1971
0
votes
2 answers
jquery serializeArray doesn't work in SafariI'm trying to use JQuery's serializeArray method to create an array of objects from a simple form (get data from a form and cache to be use later):
0
votes
2 answers
Get values from serializeArray with a type array inputI have inputs like this:
I am trying to get all values with a jQuery's serializeArray, but it wont work.
I am doing:
var test = $('#myForm').serializeArray();
debug(test.val[test]);
Its not working, why?
![]()
Paulo Rodrigues
0
votes
1 answer
jquery serializeArray values & write results in textareaI'm having a little issue which I can't seem to get my head around. I am attempting to use jQuery's .serialiseArray function to combine a number of inputs & textarea values into single textarea for when the form is submitted.
I have created the…
![]()
Sheixt
0
votes
1 answer
JQuery .serializeArray() drops text after < in input boxUsing .serializeArray() and if I enter say Jim
![]()
JimA
0
votes
1 answer
List application using serializeArray and observer patternI'm trying to create a list application that will let a user inputs an item into a text field that will be dynamically created on submit (list tag). I then want to be able to delete any of the item added individually (using a delete button that will…
![]()
John
0
votes
1 answer
Adding a new line to SerializeArray outputI'm trying to create a form which returns a sum of the items selected (done) and a list of the items selected. My item values are formatted as follows:
input name="Door" type="radio" value="260~~Stable Door"
I'm using serializeArray to split the…
![]()
clareontherun
|