$(document).ready(function(){ $('.menu-158').hover( function(){ $('.secondary-menu', this).show(); }, function(){ $('.secondary-menu', this).hide(); } ); });