I have a pop up window made in JS. There is a lot of buttons and text boxes in that pop up. I want to make this whole pop up read only. Is there is any method in Java script?
Read only pop up
Collapse
X
-
yes ... you may loop through your input-elements and set the disabled-attribute for them:Originally posted by AMT IndiaI have a pop up window made in JS. There is a lot of buttons and text boxes in that pop up. I want to make this whole pop up read only. Is there is any method in Java script?
[CODE=html]
<input type="button" value="test" disabled=""/>
[/CODE]
it only has to be set ... if you want the elements enabled you have to remove the attribute.
kind regards ...Comment
-
this works in IE and for text-boxes only - looks a little bit different to disabled and allows the user to select and copy the text in the box ... while disabled does not ... but readonly seems not to work in moz, ff ...?Originally posted by dmjprothis is very simple .....
u can do this by enable the readonly attribute of all fields.
say .. <input type = text readonly>
i think this ll work for u.
kind regards.
dmjpro.
kind regards ...Comment
Comment