| Author |
readOnly disable style
|
Pranav Sharma
Ranch Hand
Joined: Oct 27, 2003
Posts: 254
|
|
How do I make text in a readOnly field look exactly like text in a disabled field. Thanks
|
 |
Shrikumar Vadivelu
Greenhorn
Joined: Sep 14, 2005
Posts: 14
|
|
Hi, set readonly="readonly" in ur textfield. like, <input type="text" name="aaa1" readonly="readonly" MAXLENGTH="4" value="991" size="8"> Thanks & Regards, --Sri.
|
 |
Pranav Sharma
Ranch Hand
Joined: Oct 27, 2003
Posts: 254
|
|
sorry is should have been clear earlier. I know how to set it to readOnly. just wanted to know style'wise' what do i add to the element so it 'looks' like disabled. for example 'font-color' etc.
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56185
|
|
Simply apply the appropriate CSS styles to the element. You will find more CSS tutorials on the net than you will know what to do with.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
 |
|
|
subject: readOnly disable style
|
|
|