On Nov 2, 2006, at 4:14 PM, Giuliano Marcangelo wrote: not 100% sure if this will do the trick.........maybe one of the experts could verify
<script type="text/_javascript_"> $(document).ready(function() { $(".item1").hover(function() { $(this).next().addClass("shift"); }, function() { $(this).next().removeClass("shift"); }); }); </script>
On 02/11/06, Bradford R. Bowman < [EMAIL PROTECTED]> wrote: So, for each in a series of nested divs like so...
<div class="item1"> <div class="item2> ... </div> </div>
Since they're nested DIVs, you could change it to this:
<script type="text/_javascript_"> $(document).ready(function() { $(".item1").hover(function() { $('>div', this).addClass("shift"); }, function() { $('>div', this).removeClass("shift"); }); }); </script> |
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/