you can add an id to your checkbox in order to get much easier
reference to element clicked. Let's say you have id = widget1||123456,
widget2||123456 etc
then
$('input[type=checkbox][id$=123456]')'.click(function(){
$('input[type=checkbox][id$=123456]')'.not($(this)) will give you all
other check box

// for more generic id yu can get the lase digit of the id and select
all others as well
var id = $(this).attr('id'); // get the last part with split function
var chkid() = id.split('||');
now you get all other check box with
$('input[type=checkbox][id$=' + chkid[1] + ']')'.not($(this))

});

On Aug 30, 12:44 pm, "Steffan A. Cline" <stef...@hldns.com> wrote:
> 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  
> stef...@execuchoice.net                             Phoenix, 
> Azhttp://www.ExecuChoice.net                                 USA
> AIM : SteffanC          ICQ : 57234309
> YAHOO : Steffan_Cline   MSN : stef...@hldns.com
> GOOGLE: Steffan.Cline             Lasso Partner Alliance Member
> ---------------------------------------------------------------

Reply via email to