By default, if a field on your form is disabled, it will not save any changes made via script. In these cases you need to specifically change its submit mode as follows:
1 Xrm.Page.getAttribute("new_attributename").setSubmitMode("always");
Pure and simple!
1 Xrm.Page.getAttribute("new_attributename").setSubmitMode("always");
Pure and simple!