Forums

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

Home Forums JavaScript Selecting a certain element from elements with same classnames

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #45364
    ajnoguerra
    Participant

    Hi.. I have a list of link boxes with same class names. I want to apply mouse over effect to each so that its child element will disappear when I hover. But my code actually applies it to all.. Please teach me a work around for this. Thanks

    #137927
    chrisburton
    Participant

    Please post on http://codepen.io

    #137929
    ajnoguerra
    Participant

    http://codepen.io/ajnoguerra/pen/qIDvz

    Please teach me…
    I currently have a sample of my jquery code that I’m trying to figure out.

    $(“.mainlinks”).hover(
    function () {
    //mouse in
    $(“#overlay”).stop().animate({
    height: “0”,
    opacity: “0”
    }, 400 );
    },
    function () {
    //mouse out
    $(“#overlay”).stop().animate({
    height: “130px”,
    opacity: “10”
    }, 200 );
    }
    );

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.