[jQuery] Re: How do I attach a toggle to a checkbox. I want a table row to fade out/in, when a checkbox is toggled

2008-02-11 Thread Polskaya
Hi, this works in my browser: $(document).ready(function(){ $('.deleteRow').click(function() { if($(this).attr("checked")) { id=this.id; splitid=id.split('|'); trid=splitid[1]; $("tr#"+trid).animate({ opacity: 0.2, }, 500 ); } els

[jQuery] Re: How do I attach a toggle to a checkbox. I want a table row to fade out/in, when a checkbox is toggled

2008-02-11 Thread quirksmode
I managed to come up with this, which seems to work to some extent. $(document).ready(function(){ $('input#go').click(function() { if($(this).attr("checked")) { $("tr").animate({ opacity: 0.2, }, 500 ); } else { $("tr").animate({ opacity: 1,

[jQuery] Re: How do I attach a toggle to a checkbox. I want a table row to fade out/in, when a checkbox is toggled

2008-02-11 Thread Christoph Haas
On Mon, Feb 11, 2008 at 04:51:54AM -0800, quirksmode wrote: > I have created a table, at the end of each table row is a checkbox. > When the user selects the checkbox, that row will fade out to give the > illusion its now disabled. When the checkbox is unchecked I want the > row to fade back. Not