Modify ↓
Ticket #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: | ||
| Blocking: | Blocked by: |
Description
$("[name]", form.elements) not working-return empty result.
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

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.