?
Solved

Trouble using two different jQuery techniques on one page.

Posted on 2009-07-09
2
Medium Priority
?
252 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 2000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
The viewer will learn how to dynamically set the form action using jQuery.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Suggested Courses

770 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