I have an java script array created as –
var ar = new Array();
ar[0] = 'foo';
ar[1] = 'bar';
I need to know what is best way to post it to server using ajax (jquery)? Do i need to serialize it before post?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can send it as it is,
You can also use jquery $.post and $.get function.