No value for readonly/disabled textfield

When i set a textfield to disabled or readonly, i can’t see the value that has been set to this textfield. How is that. is there a workaround to disabling or setting a textfield to readonly?