Is it possible to make a textbox read only on the selection of a combo box, without the web page posting back? I am creating a sickness form, and if the user selects that a doctor has not been seen, i wish to make specific text boxes read only. The problem with the postback event is that it will not open the modal window after postback, it only opens if the button is once again clicked.
Thanks in advance
To make textbox readonly in javascript use following code. Call this code on combox box event.
aspx code:
JS Code: