• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Bouncy content Panes Not working

 
Vishal Hegde
Ranch Hand
Posts: 1077
Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator




I am using this code to hide the div tag but its not hiding ? By the way what does > sign imply in this scenario
 
Matthew Brown
Bartender
Posts: 4568
9
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1077
Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4568
9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1077
Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

 
Matthew Brown
Bartender
Posts: 4568
9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1077
Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Matthew,

I didnt get it? I have defined an ID as bio for div tag ?
 
Matthew Brown
Bartender
Posts: 4568
9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1077
Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Matthew,

Child of which element??

I am still not getting why is the above HTML i posted wrong?
 
Matthew Brown
Bartender
Posts: 4568
9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1077
Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic