[jQuery] Animate and Toggle
Hi there,
I am pretty new to JQuery. I hope someone can answer these questions
for me.
I have some links on top of the page that are fixed in the center and
a single division
that is fixed in the middle of the page bellow them. I wanted to know
how I could animate
the division to resize itself and populate it with text, images, etc.
when I click on a link.
The links are external .html
I tried using this just to test:
$(document).ready(function() {
$("li.action-one").click(function(){
$("#content").animate({
width: "300px"
});
});
$("li.action-one").click(function(){
$("#topic").toggle();
});
});
The topic div is in the content div and is hidden. I cant seem to make
animate and toggle
to work on the same link...if I take out one, it works.