Doh. This totally works now. Dunno, maybe my page was cached. Crack kills, kids.
On Tue, May 12, 2009 at 1:28 PM, gravyface <gravyf...@gmail.com> wrote: > Hello, > > Trying to hide a table that's a sibling to the anchor to which the > click event is being called. It works, with any element but a table > as a sibling. My code/markup: > > <script type="text/javascript"> > > $(document).ready(function(){ > > // show/hide details > $(".show-hide-me").click(function() { > $(this).next().hide(); > }); > > }); > > </script> > > <!-- markup --> > > <a href="#" class="show-hide-me">Show/Hide Details</a> > > <table class="details"> > <tr> > <td> > ...