![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello, I would like to change the look of disabled inputs of type text on my web site. Should I add a disabled css class to all these inputs or is it possible to select them in my CSS Code ... ... not using an ID or a class ... |
#3
| |||
| |||
|
|
On 2008-11-04, shapper <mdmo... (AT) gmail (DOT) com> wrote: Hello, I would like to change the look of disabled inputs of type text on my web site. Should I add a disabled css class to all these inputs or is it possible to select them in my CSS Code ... ... not using an ID or a class ... There's a :disabled pseudo-selector, but it's CSS 3. You could try and it see if it works. |
#4
| |||
| |||
|
|
I would like to change the look of disabled inputs of type text on my web site. |
#5
| |||
| |||
|
|
There's a :disabled pseudo-selector, but it's CSS 3. |
|
You could try and it see if it works. |
#6
| |||
| |||
|
|
But what's the point of using an input field that cannot be used for input? |
#7
| |||
| |||
|
|
Jukka K. Korpela schrieb: But what's the point of using an input field that cannot be used for input? Think of a "Save" button that is disabled as long as the text field for the filename is empty. Or of an input field that is only meaningful if e.g. a checkbox is selected. Yes, there are other ways, but this is standard GUI stuff, I think |
#8
| |||
| |||
|
|
On Nov 5, 9:36 am, Christian Kirsch <c... (AT) bru6 (DOT) de> wrote: Jukka K. Korpela schrieb: But what's the point of using an input field that cannot be used for input? Think of a "Save" button that is disabled as long as the text field for the filename is empty. Or of an input field that is only meaningful if e.g. a checkbox is selected. Yes, there are other ways, but this is standard GUI stuff, I think The case here is that I have 3 forms: Create, Edit and Delete. In Create form all items can be changed. In Edit form a few items cannot be changed like username, ... In Delete form all items are blocked. The inputs only show info on the user before the user is deleted if that's the intention. |
#9
| |||
| |||
|
|
But what's the point of using an input field that cannot be used for input? |
#10
| |||
| |||
|
|
In article <1p2Qk.88541$_03.80866 (AT) reader1 (DOT) news.saunalahti.fi>, Jukka K. Korpela writes: But what's the point of using an input field that cannot be used for input? It's a method for having information on a page change, possibly as a result of a calculation. If you create a local application (the classic example that comes to mind is everybody's favorite, a mortgage amortization program), you need some way to show the outputs after the user has provided the inputs. |
![]() |
| Thread Tools | |
| Display Modes | |
| |