Answers for "jquery serialize form data to json"

0

how take values from JSON.stringify($('form').serialize())

1 var formData = $('#form').serializeObject();
2 $.extend(formData, { Contacts : myContacts});
3 $.extend(formData, { Address : myAddress});
4 var result = JSON.stringify(formData);
5
Posted by: Guest on July-17-2020
1

jquery form serialize object

$(function(){
  $('form').on('submit', function(e){
    e.preventDefault();
    $(this).serializeObject().done(function(o){
      if(window.console) console.log(o);
      var j = JSON.stringify(o);
      alert(j);
      //window.open("data:image/png;base64," + o.userfile.data);
    });
  });
});
Posted by: Guest on May-01-2020

Code answers related to "jquery serialize form data to json"

Code answers related to "Javascript"

Browse Popular Code Answers by Language