Grow your CSS skills. Land your dream job.

Content swap. jQuery

  • # January 13, 2012 at 2:37 pm

    http://jsfiddle.net/…ajzer/Marec/30/

    How do i achieve this:

    you click a link and a paragraph shows up (div)
    and you click the link under it and the first div disappears and a new one appears,
    then you click the next link, and the content changes again , the previous div disappears, and a new one appears.

    for some reason my code isn’t working…

    could i please get some help?

    # January 13, 2012 at 3:26 pm

    http://jsfiddle.net/attilahajzer/Marec/39/

    it doesn’t do anything.

    .accordion

    # January 14, 2012 at 6:51 am

    line 5 you accidentally used a hash instead of dollar sign….


    $(document).ready(function(){
    $('#website-design').click(function(){
    $('.website-design').show();
    $('.graphic-design').hide();
    #('.wordpress').hide();
    });
    });

    http://jsfiddle.net/8jsQ8/

    works fine here :)

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

You must be logged in to reply to this topic.

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