Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS I NEED HELP {NOOB QUESTION}

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #45762
    ScottMarshall
    Participant

    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);
    });

    #139942
    Kuzyo
    Participant
    #139952
    ScottMarshall
    Participant

    Thanks man helped alot!

    #140004
    TheDoc
    Member

    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.

    #140012
    ScottMarshall
    Participant

    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)
  • The forum ‘CSS’ is closed to new topics and replies.