13/09/2012 Development / java script

$(':checked').map(function(){return this.value}).get();

$('input:checkbox').map(function() {
   return { name: this.name, value: this.checked ? this.value : "false" };
 });

var searializedObj = {}
$("form input:checkbox").each(function(){
searializedObj[this.name] = this.checked;
});

 

Jump the cat!