JSFiddle - React, Tailwind, and code Playground

HTML

<form id="test">
  <input type="text" name="t1" value="Test 1" />
  <input type="text" name="t2" value="Test 2" disabled="" />
</form>    

<button>Click</button>

JavaScript

$('button').click(function(){
    var data = $('form').serializeAll();
    alert(data.toSource());
});


(function ($) {
  $.fn.serializeAll = function () {
    var data = $(this).serializeArray();
          
    $(':disabled[name]', this).each(function () { 
        data.push({ name: this.name, value: $(this).val() });
    });
      
    return data;
  }
})(jQuery);