Greying out text fields?

I was just wondering if theres a way to grey out text fields when a radio button in checked.

i dont know if you get the pooint of the “greying out” so heres more detail.

the text field turns void, and you cant write in it. I think thats possible with javascript, or something.

any ideas?
-Naaman