Sunday, August 30, 2009

[jQuery] Replacing like items

I have a form of data I am working on where I may have *nearly* the same
thing appear with a checkbox appear multiple times.

For example:

<input type="checkbox" name="blah" value="widget1||123456">
<input type="checkbox" name="blah" value="widget2||123456">
<input type="checkbox" name="blah" value="widget3||123456">
<input type="checkbox" name="blah" value="widget4||123456">
<input type="checkbox" name="blah" value="widget5||123456">

So, if checkbox #1 (widget1) is checked, it will either disable all other
ones containing the sku 123456 OR replace the others in the form having sku
123456 with an image of a sort.

Is there a way to select this without iterating through every checkbox in
the form and looking at it's value?

Thanks

Steffan

---------------------------------------------------------------
T E L 6 0 2 . 7 9 3 . 0 0 1 4 | F A X 6 0 2 . 9 7 1 . 1 6 9 4
Steffan A. Cline
Steffan@ExecuChoice.net Phoenix, Az
http://www.ExecuChoice.net USA
AIM : SteffanC ICQ : 57234309
YAHOO : Steffan_Cline MSN : steffan@hldns.com
GOOGLE: Steffan.Cline Lasso Partner Alliance Member
---------------------------------------------------------------

No comments: