[jQuery] Re: Weird Hiding Issue

2009-01-24 Thread Karl Swedberg
On Jan 24, 2009, at 8:02 AM, david.vansc...@gmail.com wrote: Yeah, I figured it was probably something along those lines. So what would be the best way to hide all but the first element of a DIV? I'm not sure what you mean by "hide all but the first element of a DIV." If you mean, "hide a

[jQuery] Re: Weird Hiding Issue

2009-01-24 Thread Stephan Veigl
suppose you have a jQuery element called: div div.children(":not(:first)").hide(); will hide every immediate child of the div, except the first one by(e) Stephan 2009/1/24 david.vansc...@gmail.com : > > Yeah, I figured it was probably something along those lines. So what > would be t

[jQuery] Re: Weird Hiding Issue

2009-01-24 Thread david.vansc...@gmail.com
Yeah, I figured it was probably something along those lines. So what would be the best way to hide all but the first element of a DIV? David On Jan 23, 11:12 pm, Karl Swedberg wrote: > Hi David, > > I suspect the unordered lists aren't being hidden because the browser   > will not recognize t

[jQuery] Re: Weird Hiding Issue

2009-01-23 Thread Karl Swedberg
Hi David, I suspect the unordered lists aren't being hidden because the browser will not recognize that they are within the paragraph. Paragraphs are not allowed to have any block-level elements inside of them: The P element represents a paragraph. It cannot contain block-level elements