[jQuery] Re: Replacing like items

2009-09-04 Thread Steffan A. Cline
on 8/31/09 10:42 AM, mkmanning at michaell...@gmail.com wrote: Play around with this: $('input[value*=||]').change(function(){ var $this = $(this),val = $this.val().split('||')[1]; if($this.is(':checked')){ $this.removeAttr('disabled').siblings('input[value$='+val+']').attr

[jQuery] Re: Replacing like items

2009-08-31 Thread mkmanning
Play around with this: $('input[value*=||]').change(function(){ var $this = $(this),val = $this.val().split('||')[1]; if($this.is(':checked')){ $this.removeAttr('disabled').siblings('input[value$='+val+']').attr ('disabled','disabled'); } else {

[jQuery] Re: Replacing like items

2009-08-30 Thread FrenchiINLA
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