Ticket #10272 (closed bug: invalid)
Add parameters to element.each()
|Reported by:||jquery@…||Owned by:|
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.