Solved

Trouble using two different jQuery techniques on one page.

Posted on 2009-07-09
2
235 Views
Last Modified: 2012-05-07
Currently i have a one page portfolio that i'm working on and i have two <a> tag's and when one is clicked there is some jQuery to display a different portion of the page (a.k.a. #content_2). Now i'm trying to add an image slider in the #content_2 part but it doesn't work with the way i have the CSS set to #content_2 {display:none}. When i take this CSS piece out, it works fine, except the content_2 is visible the whole time, and i only want it visible when the link "My Designs" is clicked.

Does anyone know a fix for this? I'm pretty new to jQuery and not the best with javascript either.

Here's the link to my page http://tcportfolio.hostoi.com/Portfolio.html 
0
Comment
Question by:toymachiner62
2 Comments
 
LVL 12

Accepted Solution

by:
Chad Haney earned 500 total points
ID: 24819585
You could take out the css, but apply
$('#content_2').hide();  within the document.ready for jquery.  then for my designs onclick use something like $('#content_2).show();  or an animation you want to use.
0
 
LVL 2

Author Closing Comment

by:toymachiner62
ID: 31601874
Worked great thank you
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
"In order to have an organized way for empathy mapping, we rely on a psychological model and trying to model it in a simple way, so we will split the board to three section for each persona and a scenario and try to see what those personas would Do,…
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…
The viewer will learn how to dynamically set the form action using jQuery.

929 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now