1Use this to target the "selected" element, then select the child with find() or children():
2$(document).ready(function() {
3 $('.box').mouseover(function() {
4 $(this).children('.hide').show();
5 $(this).children('.show').hide();
6 });
7 $('.box').mouseleave(function() {
8 $(this).children('.hide').hide();
9 $(this).children('.show').show();
10 });
11});
12