Grow your CSS skills. Land your dream job.

I NEED HELP {NOOB QUESTION}

  • # June 23, 2013 at 4:32 am

    Hey guys I need help seeing as I am new to jquery my question is -

    I have a link when the link is clicked an element fades in, although when I click again
    the function does not trigger meaning it only fires once!

    how can I get it to fire on click everytime i click the link? Here is the code

    $(“.Services”).click(function(){
    $(“#MainContainer”).css(“top”,”0px”);
    $(“.Element”).fadeIn(1000);
    });

    # June 23, 2013 at 4:51 am

    try this http://api.jquery.com/fadeToggle/

    # June 23, 2013 at 6:42 am

    Thanks man helped alot!

    # June 23, 2013 at 5:32 pm

    Just a little note: You’ll find that the fast majority of front-end web developers use `lower-case` with hyphens for classes and IDs. If you want to use `camelCase` inside your JS, that’s totally fine, but HTML and CSS has a different set of standards.

    # June 23, 2013 at 7:35 pm

    Im aware of that I’ve just gotten in a bad habit from so much grammar with making everything caps. Thanks.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".