var data = {};
$('#test-form label [name]').map(function(){
if(this.type !== 'radio' || this.checked){
data[this.name] = this.value;
}
});
json = JSON.stringify(data);
Sign in to make a reply
*花前
var data = {};
$('#test-form label [name]').map(function(){
if(this.type !== 'radio' || this.checked){
data[this.name] = this.value;
}
});
json = JSON.stringify(data);