enable/disable textbox based on select box selected value

enable/disable textbox based on select box selected value

What is the best way to enable/disable a textbox based on the option selected in a select box. I don't want to do it based on onchange event of the select box. It should be something that should be in effect right from the beginning when the page loads.

Thanks.