• Select all but not disabled

    From Andrew Poulos@21:1/5 to All on Sun May 2 12:02:11 2021
    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.

    Andrew Poulos

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From James Kirk@21:1/5 to Andrew Poulos on Sat May 1 23:05:17 2021
    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])


    --
    Jš•’š•žš•–š•¤ š•‚š•šš•£š•œ

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andrew Poulos@21:1/5 to James Kirk on Sun May 2 16:59:12 2021
    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?

    Andrew Poulos

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From James Kirk@21:1/5 to Andrew Poulos on Sun May 2 08:00:36 2021
    In Message: <7PKdnXVVrOZc0BP9nZ2dnUU7-QmdnZ2d@westnet.com.au>
    Andrew Poulos <ap_prog@hotmail.com> wrote:

    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?

    You should add it to each of the selectors.

    :not([disabled]) would be the same as *:not([disabled])

    input:not([type="button"]):not([disabled]),
    input.preview:not([disabled]), textarea:not([disabled]), select:not([disabled])ā€¦

    you should not need the input.preview:not([disabled]), unless it is type=button, since input:not([type="button"]):not([disabled]) should
    include it.

    --
    Jš•’š•žš•–š•¤ š•‚š•šš•£š•œ

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)