Discuss / JavaScript / exercise

exercise

Topic source
json = {};
$('#test-form :input[type!=submit]').map(function(){
  if(this.type !== "radio" || this.checked){
     json[this.name] = this.value;
  }
});
json = JSON.stringify(json);

  • 1

Reply