jQuery Toggle question
jQuery Toggle question
Out of context: Reply #4
- Started
- Last post
- 7 Responses
- monstroyer0
@Stugoo: Thanks! I was able to get the first bit to work and now the div is at 50% height but I'm at a loss at how to implement the toggle. I know this is probably basic js so please forgive me.
So I'm trying to create an event handler here:
$('#toggle').click( function(){
$('#element').stop().animate({ height : '100%'; }, 400);
});
});and then call it with this:
<a href="#" id="toggle">more</a>What am I doing wrong?
Also, sorry about the misunderstanding. The site above with the .js doesn't belong to me. It's just something I found while researching this.