Skip to content

event-helpers.md .toggle description inconsistent with API docs #382

@mjparrott

Description

@mjparrott

On the event helpers section of learn.jquery.com, it says the .toggle function is to be given 2 or more functions that are called when an onclick event occurs.

However, the .toggle method description in the documentation talks about it being used to toggle the visibility of elements.

It looks like the first usage was deprecated in 1.8 and removed in 1.9, so this should probably be updated to show its newer usage.

See:
http://api.jquery.com/toggle-event/
http://api.jquery.com/toggle/
http://learn.jquery.com/events/event-helpers/

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