I put an example out of the hover function for those who like to see working examples. Hover over the Unorder List in the left column to see it at work
http://www.levelfield.com/newsticker1.html On Apr 29, 7:38 pm, Ralph <[EMAIL PROTECTED]> wrote: > I'm tryin to do a hover effect for a using a unordered list....this is what > my code looks like: > > <script> > $("#categories > li").hover(function(){ > alert("the mouse is over");},function(){ > > alert("the mouse is out");}); > > </script> > > <div id="categories"> > <ul> > <li>Category 1</li> > <li>Category 2</li> > <li>Category 3</li> > <li>Category 4</li> > <li>Category 5</li> > </ul> > </div> > > i've tried different variations for selecting the element including > $("#categories > ul > li"), but nothing is happening. I'm sure i'm > overlooking something....