Bug Tracker

Opened 9 years ago

Closed 9 years ago

#7457 closed bug (invalid)

$("[name]", form.elements) not working

Reported by: anonymous Owned by:
Priority: undecided Milestone: 1.5
Component: unfiled Version: 1.4.4rc
Keywords: Cc:
Blocked by: Blocking:

Description

$("[name]", form.elements) not working-return empty result.

Change History (1)

comment:1 Changed 9 years ago by SlexAxton

Resolution: invalid
Status: newclosed

You are using the context argument to try to scope your search, but it's not a valid context.

From the docs: context - A DOM Element, Document, or jQuery to use as context

You are actually passing in an array of elements to the context argument, which doesn't work.

You are likely trying to do a filter of the elements, so you could probably do something like:

$(form.elements).filter('[name]');

I'll mark this as invalid, but we appreciate your decision to try and help the project out though.

Note: See TracTickets for help on using tickets.