Skip to content

Show / Hide von HTML Elementen vereinheitlichen #121

@rsteph-de

Description

@rsteph-de

Ich habe für dasselbe Verhalten schon 3 verschiedene Implementierungen gefunden:

  • .classList.remove('d-none'); / .classList.add('d-none');
  • removeAttribute('hidden'); / addAttribute('hidden');
  • .style.removeProperty('display'); / .style.setProperty('display', 'none');

Welche ist die Beste? - diese sollte dann auch konsequent verwendet werden

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