you may use the control's ClientID property when in client-side..

document.getElementById('<%=myTextBox.ClientID%>').disabled = true;

hth