How can I modify this example so it can get values from checkboxes that aren\'t checked?
I want all checkboxes to have a value, if it hasn\'t been checked I want to get
@SNag's answer worker almost 99% just with little bit correction. Change below line
$.each(this, function (i, e) {
$.each(this.find('input'), function (i, e) {
Explanation: As this was not working because this
returned form element. So on form .each
won't give us all input elements inside form. So I did this correction and it worked like charm.