Help - Search - Members - Calendar
Full Version: Care to explain?
Forums > Resource Center > Webmasters' Corner > Webmasters' Corner Resolved Topics
Mikeplyts
I'm designing a blog layout, and I want to toggle some content. I'm trying to use something pretty simple and I came up with this:
CODE
$(function() {
    $("a#show").click(function(event) {
        event.preventDefault();
        $("div#content").slideToggle();
    });
});

Yes, I am using jQuery (in case you didn't read the sub-title). Help?


EDIT:
Never mind. Fixed it.
CODE
$(function() {
    $('a#show').click(function() {
        #('div#content').slideToggle();
    });
});

pinch.gif
Mickey
Topic closed & moved.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.