What is the recommended way in JQUERY to send a dynamic set of data to the server, the set contains items like:
ID: 13
Copy:
hello world….hello world….hello world….hello world….
ID: 122
Copy:
Ding dong …Ding dong …Ding dong …Ding dong …Ding dong …
ID: 11233
Copy:
mre moremore ajkdkjdksjkjdskjdskjdskjds
This could range from 1, to 10 items. What’s the best way to structure that data to post to the server with JQUERY?
Thanks
A JSON array. Note that this is the string representation of a JavaScript array.
You can create this programatically using something like::
You then pass jsonText as the data parameter to $.ajax.