changing disabled or readonly on document.createElement inputs.

changing disabled or readonly on document.createElement inputs.

hi! So I have a jquery program that I'm coding to pull all of our assets from a sql db and put them in a table. The table actually exists in a div that will be displayed in a jquery UI dialog.

the TRs, TDs and INPUT text fields (where asset data is displayed) is all created dynamically with document.createElement("td") or document.createElement("input").

Here is an example
  1.                         var manufacturerElement = document.createElement("input");
                            manufacturerElement.id = "laptopManufacturer" + laptopId;
                            manufacturerElement.name = "laptopManufacturer" + laptopId;
                            $(manufacturerElement).val(manufacturer);
                            $(manufacturerElement).appendTo(manufacturerCell);
                            $(manufacturerElement).attr("disabled", true);
                            $(manufacturerElement).attr('size','7');






Anyways, I can not change the "disabled or "readonly" attributes at all. not with .attr. not with .removeAttr....

When I use firebug to see what's happening. those INPUTS actually only have disabled="" not disabled="true" or disabled="disabled" ... even if I replace the code above with attr("disabled", "disabled");


Any ideas why this would be?

I should say that all css functions work perfect. like .addClass works PERFECT on all these elements.