I am using jquery ajax to post form contents to the server like this:
$.ajax({
type: type,
dataType: "json",
url: url,
data: form.serialize(),
success: onSuccess
});
I have to send an array of data as though it came from a checkbox.
I don't want to create a hidden checkbox on the fly and append() it to the form before submission. I dont see any other methods in the form jquery api that could help me. Any help?
Thanks, Chris.