jQuery Question

Out of context: Reply #4

  • Started
  • Last post
  • 5 Responses
  • 3030

    I presume that you have a div inside <li> item of list ul.tab.
    So, use jquery bind to bind multiple events; bind evets to <li> items

    $("ul.tab li").bind({
    mouseenter: function(){
    $("#panel").slideDown();
    },
    mouseleave: function() {
    $("#panel").slideUp();
    }
    });

    In your css the panel to you want to toggle - make it hidden by default (display:none);
    Also - list items - add position: relative;

    Hope this helps you.

    • "Ahaaaaa" moment.
      I'll give it a shot when I get home.
      duckseason

View thread