submit disabled fields

You can make your fields readonly, this will disallow changes to the value of your controls.

Edit: You could easily write a “serializeDisabled” function, iterating over the disabled form elements which have a name attribute and using the jQuery.param function at the end, to generate the serialized string:

(function ($) {
  $.fn.serializeDisabled = function () {
    var obj = {};

    $(':disabled[name]', this).each(function () { 
        obj[this.name] = $(this).val(); 
    });
    return $.param(obj);
  }
})(jQuery);

Leave a Comment