$(‘#menu’) is to select menu element with id ‘menu’ $(‘#menu’).mouseover() is to attach mouseover event. The following is the way to write a anonymous function inside mouseover() to show submenu. $('#menu').mouseover(function() {
$('#submenu').show(); // shows the submenu with id ‘submenu’
});