Answers for "select div with specific class not all divs jquery"

0

select div with specific class not all divs jquery

Use this to target the "selected" element, then select the child with find() or children():
$(document).ready(function() {
  $('.box').mouseover(function() {
    $(this).children('.hide').show();
    $(this).children('.show').hide();
  });
  $('.box').mouseleave(function() {
    $(this).children('.hide').hide();
    $(this).children('.show').show();
  });
});
Posted by: Guest on September-03-2021

Code answers related to "select div with specific class not all divs jquery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language