view: 'text' dynamicly set readonly property

Hi, is it possible to dynamicaly change readonly property of control`s?

e.g. :
$$(“myTextBox”).readonly = false;

$$("myTextBox").define("readonly", false); //set new value $$("myTextBox").refresh(); //force repainting

great, thank you very much