[jQuery] $(this).next() not matching sibling table
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>
...