Bug Tracker

Modify

Ticket #7457 (closed bug: invalid)

Opened 3 years ago

Last modified 3 years ago

$("[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

comment:1 Changed 3 years ago by SlexAxton

  • Status changed from new to closed
  • Resolution set to invalid

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.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.