Skip to content

wrap() uses the first element when provided a jQuery object #698

@AurelioDeRosa

Description

@AurelioDeRosa

The documentation of the wrap() method asserts that a jQuery object or a string containing a selector can be passed as an argument. However, in case a selector matching more than one element or a jQuery object containing more than one element is passed, only the first (element) is used as the wrapper.

This detail is not specified and I think it's worth to add it. Any thoughts?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions