Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 2 of 2 FirstFirst 12
Results 16 to 20 of 20
  1. #16
    Senior Coder jmrker's Avatar
    Join Date
    Aug 2006
    Location
    FL
    Posts
    3,102
    Thanks
    38
    Thanked 498 Times in 492 Posts

    Thumbs up

    Quote Originally Posted by voodazzed View Post
    Very cool. The IDS parameter makes sense to me because it is encompassing two different ids.

    I guess I was confused to why 'info' wasn't used in the button function instead of 'this', but 'this' actually refers to the button element itself, which is then represented in the actual function as 'info' and that is how javascript knows which element to make the changes to in regards to the 'info' placeholder.

    Am I correct in my deduction or at least close?
    Yep. You said what I was trying to say.

  2. #17
    New Coder
    Join Date
    Jan 2013
    Posts
    15
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Okay that's good to know that I'm have at least a loose grasp of what's going on.

    The one other thing I can't quite figure out is how you were able to first div content to show up by default.

    I thought the loop for the divs hides the divs as long as the variable 'i' is less than the 'sel' variable's length so how is the first div content visible by default?

    Thanks a lot for indulging me in this by the way.

  3. #18
    Senior Coder jmrker's Avatar
    Join Date
    Aug 2006
    Location
    FL
    Posts
    3,102
    Thanks
    38
    Thanked 498 Times in 492 Posts
    I used the same class for the <div> tags, but I added an inline display='block' for the first display.
    The inline setting overrides the class setting

  4. Users who have thanked jmrker for this post:

    voodazzed (02-01-2013)

  5. #19
    New Coder
    Join Date
    Jan 2013
    Posts
    15
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Oh I see! Durrr! I totally missed that part! I was so busy dissecting the javascript, I didn't think to look at the styles!

    Okay I believe that answers my last lingering question about this! Thanks again!

  6. #20
    Senior Coder jmrker's Avatar
    Join Date
    Aug 2006
    Location
    FL
    Posts
    3,102
    Thanks
    38
    Thanked 498 Times in 492 Posts
    You're most welcome.
    Happy to help.
    Good Luck!


 
Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •