Bug Tracker

Opened 11 years ago

Closed 11 years ago

#10272 closed bug (invalid)

Add parameters to element.each()

Reported by: [email protected] Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.6.4rc1
Keywords: Cc:
Blocked by: Blocking:


Hi, I have a series of selects. Each select must have a different value when submitted. When changing a select, I must find all other selects and change them to "none".

The current form of each() doesn't appear to allow me to pass the "value" as a context to the function. E.g. if I choose "red", I can't pass "red" through each to the function that changes "red" to "none".

"red" could be passed by adding another parameter to each() cnanging it from:

.each( function(index, Element) )


.each( function (index, Element, context), context)

Context would of course be optional.



Change History (2)

comment:1 Changed 11 years ago by anonymous

... I must find all other selects WITH THE SAME VALUE and change them to "none"...

comment:2 Changed 11 years ago by dmethvin

Resolution: invalid
Status: newclosed

Use a closure. Ask on the forum if you need further help.

Note: See TracTickets for help on using tickets.