[jQuery] Re: Prepended row, slide-in, showing only first cell

2009-02-13 Thread Mark Steudel
Thanks I'll give that a shot! On Feb 12, 11:35 pm, mkmanning michaell...@gmail.com wrote: That should read ..first-child of its parent,.. in the first sentence On Feb 12, 11:33 pm, mkmanning michaell...@gmail.com wrote: Actually, Mark's use of 'first-child' is correct. ':first-child' is

[jQuery] Re: Prepended row, slide-in, showing only first cell

2009-02-13 Thread Mark Steudel
Follow up question, if I instead wanted to use multiple table cells instead of one big colspan, is there a way to do this same sort of thing without a div? On Feb 12, 11:35 pm, mkmanning michaell...@gmail.com wrote: That should read ..first-child of its parent,.. in the first sentence On

[jQuery] Re: Prepended row, slide-in, showing only first cell

2009-02-13 Thread mkmanning
Not really, the problem is making the table rows or cells display:block. I suggest playing around with the markup and CSS using block element for the header, to get it to look how you want, then add the behavior after. On Feb 13, 11:15 am, Mark Steudel msteu...@gmail.com wrote: Follow up

[jQuery] Re: Prepended row, slide-in, showing only first cell

2009-02-12 Thread James
That's probably because you're using the first-child of the tr, which is just the first td. Maybe you intended to do: $(.ajax).slideDown('slow') ? I'm not sure of its effects for a tr though compared to a div. On Feb 12, 4:43 pm, Mark Steudel msteu...@gmail.com wrote: I have a table that is

[jQuery] Re: Prepended row, slide-in, showing only first cell

2009-02-12 Thread James
That's probably because you're using the first-child of the tr, which is just the first td. Maybe you intended to do: $(.ajax).slideDown('slow') ? I'm not sure of its effects for a tr though compared to a div. On Feb 12, 4:43 pm, Mark Steudel msteu...@gmail.com wrote: I have a table that is

[jQuery] Re: Prepended row, slide-in, showing only first cell

2009-02-12 Thread mkmanning
Actually, Mark's use of 'first-child' is correct. ':first-child' is used to indicate the the element is the first-child its parent, not the parent element's first-child. The tr has a class of .ajax, and since it's prepended to the tbody, it is the first-child of the tbody, so the correct selector

[jQuery] Re: Prepended row, slide-in, showing only first cell

2009-02-12 Thread mkmanning
That should read ..first-child of its parent,.. in the first sentence On Feb 12, 11:33 pm, mkmanning michaell...@gmail.com wrote: Actually, Mark's use of 'first-child' is correct. ':first-child' is used to indicate the the element is the first-child its parent, not the parent element's