Solved

Trouble using two different jQuery techniques on one page.

Posted on 2009-07-09
2
247 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

CTAs encourage people to do something specific to show interest in your company, product or service. Keep reading to learn why CTAs should always be thought of as extremely important, albeit small, sections of websites.
When it comes to security, close monitoring is a must. According to WhiteHat Security annual report, a substantial number of all web applications are vulnerable always. Monitis offers a new product - fully-featured Website security monitoring and pr…
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…
The viewer will learn how to dynamically set the form action using jQuery.

695 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