Opened 11 years ago
Closed 11 years ago
#10272 closed bug (invalid)
Add parameters to element.each()
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.6.4rc1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
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) )
to:
.each( function (index, Element, context), context)
Context would of course be optional.
Mike
Change History (2)
comment:1 Changed 11 years ago by
comment:2 Changed 11 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
Use a closure. Ask on the forum if you need further help.
... I must find all other selects WITH THE SAME VALUE and change them to "none"...