Just to pre-empt the 'why do you want to do this' replies Here's what I'm doing:
If another control is clicked I make an ajax call to get a server generated value and stuff it in the textbox. I then, on the client-side, set the control to readOnly (I don't want to control to be disabled as I need it to postback so Im setting the readOnly attribute).
Unfortunately as readOnly it doesn't look 'disabled'
I'd like to get that disabled textbox look by doing an .addClass.
I've mucked around with various styles but I'm no closer to getting that look.
By the way this will be in IE (and could be IE7 or lower so no outline style I'm afraid).
Any ideas gratefully received.