Just to preempt the answer "why do you want to do this" Here's what I do:
If I click on another control, I make an ajax call to get the server-generated value and fill it in the text box. Then I install the readOnly control on the client side (I do not want to be able to disable it, since I need it to go back so that Im sets the readOnly attribute).
Unfortunately, like readOnly, it does not look "disconnected"
I would like to get this disabled text block by running the .addClass command.
I dumped different styles, but I'm no closer to that.
By the way, it will be in IE (and maybe IE7 or lower, so I do not plan a style).
Any ideas gratefully received.
source
share