Skip to content

jQuery function filter with attribute name contains square bracket is not working #4170

Description

@colandchan

Description

Select elements by name attribute, then use filter with selector. If the selector contains square bracket, sometimes the filter did not work as expected.

In the test case, the first console.log returns 2 as expected.
The second console.log returns 0 which expected to be 1.

Link to test case

http://jsfiddle.net/Lqv9yjn3/1/

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions