Code: Select all
var inputs = [];
$(':input', this).each(function() {
inputs.push(this.name + '=' + escape(this.value));
})But i'm having problems with it getting the correct value for checkboxes... If i have the value as 1 for a checkbox... it still gets passed as 1 even if it is not checked, as though it doesnt check the state of the checkbox, but only the value... which would mean that all checkboxes get passed...
Any ideas if there is a work around?