select div with specific class not all divs jquery

Solutions on MaxInterview for select div with specific class not all divs jquery by the best coders in the world

showing results for - "select div with specific class not all divs jquery"
Frida
07 May 2016
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