Dynamics 365 JavaScript set Disabled

Xrm.Page.getControl("fieldname").setDisabled(true);
Bekir kaya