I have a "complex" form with different types elements.
How do I do a selector that selects:
- all inputs that are not buttons,
- selects
- text areas
- check boxes
- radio buttons
- some images
BUT
- nothing that is disabled
?
So far I have
input:not([type="button"]), input.preview, textarea, select
but I get stuck on excluding disabled elements.
In Message: <gPCdnTeNodq4lRP9nZ2dnUU7-d_NnZ2d@westnet.com.au>
Andrew Poulos <ap_prog@hotmail.com> wrote:
I have a "complex" form with different types elements.
How do I do a selector that selects:
- all inputs that are not buttons,
- selects
- text areas
- check boxes
- radio buttons
- some images
BUT
- nothing that is disabled
?
So far I have
input:not([type="button"]), input.preview, textarea, select
but I get stuck on excluding disabled elements.
The same way you did the attribute type ā¦ :not([disabled])
On 2/05/2021 1:05 pm, James Kirk wrote:
In Message: <gPCdnTeNodq4lRP9nZ2dnUU7-d_NnZ2d@westnet.com.au>
Andrew Poulos <ap_prog@hotmail.com> wrote:
I have a "complex" form with different types elements.
How do I do a selector that selects:
- all inputs that are not buttons,
- selects
- text areas
- check boxes
- radio buttons
- some images
BUT
- nothing that is disabled
?
So far I have
input:not([type="button"]), input.preview, textarea, select
but I get stuck on excluding disabled elements.
The same way you did the attribute type ā¦ :not([disabled])
Should I add :not([disabled]) to all of the attributes in the
selector?
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 286 |
Nodes: | 16 (2 / 14) |
Uptime: | 88:42:20 |
Calls: | 6,496 |
Calls today: | 7 |
Files: | 12,100 |
Messages: | 5,277,419 |