[jQuery] Re: Toggling a check box on or off

2008-01-24 Thread dacoder
Nevermind it is working properly now. I moved it out of the page and into my javascript file and it is working. On Jan 24, 9:51 am, dacoder <[EMAIL PROTECTED]> wrote: > Thanks Karl, I put that in and it almost worked perfectly but if there > are more then one the only one that works is the last o

[jQuery] Re: Toggling a check box on or off

2008-01-24 Thread dacoder
Thanks Karl, I put that in and it almost worked perfectly but if there are more then one the only one that works is the last one. I will try and see if I can tweak it and get it working. Thanks a ton, I'm a lot closer then I was before. On Jan 23, 12:16 pm, Karl Swedberg <[EMAIL PROTECTED]> wrote

[jQuery] Re: Toggling a check box on or off

2008-01-23 Thread Karl Swedberg
Hi dacoder, This should do it: $('a.giftwrap-check-img').click(function() { var $this = $(this); var imgSrc = $('img', this).attr('src'); var checkedStatus = $this.next().is('input:checked'); $this.find('img').attr({src: imgSrc == '/assets/images/ icon_add.gif' ? '/assets/images/icon_x