| Author |
Bouncy content Panes Not working
|
Vishal Hegde
Ranch Hand
Joined: Aug 01, 2009
Posts: 969
|
|
I am using this code to hide the div tag but its not hiding ? By the way what does > sign imply in this scenario
|
http://www.lifesbizzare.blogspot.com || OCJP:81%
|
 |
Matthew Brown
Bartender
Joined: Apr 06, 2010
Posts: 3786
|
|
http://api.jquery.com/child-selector/
That will look for a <div> that is a child of the element with id "bio". Is that what you wanted? (And why did you use that selector if you don't know what it means?)
|
 |
Vishal Hegde
Ranch Hand
Joined: Aug 01, 2009
Posts: 969
|
|
Matthew Brown wrote:http://api.jquery.com/child-selector/
That will look for a <div> that is a child of the element with id "bio". Is that what you wanted? (And why did you use that selector if you don't know what it means?)
Hi Matthew,
Thanks a lot for your response, that clears a lot..I am reading multiple Jquery books to upgrade myself and I just came around this example, the above example is mentioned but the description about it is not clear but when I tried to implement it its not working
|
 |
Matthew Brown
Bartender
Joined: Apr 06, 2010
Posts: 3786
|
|
|
Well, you'd need to show us the structure of the HTML for us to tell exactly why it isn't working.
|
 |
Vishal Hegde
Ranch Hand
Joined: Aug 01, 2009
Posts: 969
|
|
|
 |
Matthew Brown
Bartender
Joined: Apr 06, 2010
Posts: 3786
|
|
|
Well, as I said, your selector is looking for a <div> that is a child of the element with id "bio" Which doesn't match your HTML. You want to hide the div with id "bio"? Just use the selector "#bio".
|
 |
Vishal Hegde
Ranch Hand
Joined: Aug 01, 2009
Posts: 969
|
|
Hi Matthew,
I didnt get it? I have defined an ID as bio for div tag ?
|
 |
Matthew Brown
Bartender
Joined: Apr 06, 2010
Posts: 3786
|
|
Vishal Hegde wrote:I didnt get it? I have defined an ID as bio for div tag ?
Yes, and you've got a selector written to find a <div> inside that one. From the last post: "your selector is looking for a <div> that is a child of the element with id "bio""
|
 |
Vishal Hegde
Ranch Hand
Joined: Aug 01, 2009
Posts: 969
|
|
Dear Matthew,
Child of which element??
I am still not getting why is the above HTML i posted wrong?
|
 |
Matthew Brown
Bartender
Joined: Apr 06, 2010
Posts: 3786
|
|
the element with id "bio", just like my last two posts said.
"#bio" will match this:
"#bio > div" will match this:
|
 |
Vishal Hegde
Ranch Hand
Joined: Aug 01, 2009
Posts: 969
|
|
Thank you
|
 |
 |
|
|
subject: Bouncy content Panes Not working
|
|
|