Skip to content

addClass/removeClass/toggleClass: add array as a valid argument #1073

Open
@timmywil

Description

@timmywil

See jquery/jquery#3532

jQuery 3.3 introduces a new signature to these methods, allowing a single array of strings to be passed as the first/only argument.

Note: .removeClass( [] ) will not remove all classes. It is instead equivalent to .removeClass( "" ). Passing no arguments (e.g. .removeClass()) will remove all classes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions