[jQuery] Re: Assigning an animation toggle to a checkbox to fade a table row in/out

2008-02-12 Thread andrea varnier
On 11 Feb, 17:41, quirksmode <[EMAIL PROTECTED]> wrote: > That's perfect!! Works really nicely. Just out of interest what does > the blur() mean and why is it parent().parent(). Would that need to > change if I introduced more td's? when you call an event handler without arguments, generally you

[jQuery] Re: Assigning an animation toggle to a checkbox to fade a table row in/out

2008-02-11 Thread quirksmode
That's perfect!! Works really nicely. Just out of interest what does the blur() mean and why is it parent().parent(). Would that need to change if I introduced more td's? Is it possible to add a background image to the row? Would that have to be done with a style switch, or is there a command tha

[jQuery] Re: Assigning an animation toggle to a checkbox to fade a table row in/out

2008-02-11 Thread andrea varnier
On 11 Feb, 15:22, quirksmode <[EMAIL PROTECTED]> 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. hi for

[jQuery] Re: Assigning an animation toggle to a checkbox to fade a table row in/out

2008-02-11 Thread motob
Yes, fading table rows can be done, and you've almost got it. Right now your javascript will fade out all table rows in the document when any check box is clicked. $("tr").animate({ opacity: 0.2, }, 1000 ); So you need to change $("tr").animate(...) to something like $ (this).paren