Forums

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

Home Forums JavaScript Dropdowns only working in FF

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #31436
    kevsyers
    Participant

    I’m just now trying to learn JQuery so this will probably be an easy fix for someone out there.

    I picked up the simple dropdown code Chris gave out a while back. I’m having a weird problem where it actually only drops down in Firefox. Another point to consider is that I’m using it in WordPress.

    Here’s my code in case I’ve just goofed up his code he gave us.

    HTML



    JQuery


    $(function(){

    $("ul.main-nav li").hover(function(){

    $(this).addClass("hover");
    $('ul:first',this).css('display', 'visible');

    }, function(){

    $(this).removeClass("hover");
    $('ul:first',this).css('display', 'hidden');

    });

    });
Viewing 1 post (of 1 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.