-1
I have an html form that sends the data via ajax like this:
function showValues() {
$.ajax({
type: "get",
url: "/Home/salvaItem",
data: $("form").serialize(),
success: function (data) {
$("#results").text(data);
}
});
return false;
}
Everything is fine, however, I have 3 fields that are checkbox where I am waiting the value 1 or 0 to treat, and the same is being sent 'on' or not send.
I’ve tried it this way <input type="checkbox" name="delivery" checked="1"> Entrega a domicílio
to see if it forces the same to send the number 1, but without success.
Some help?