1.

Write a query selector to select all the checkboxes in a form in jQuery?

Answer»
  • $(‘#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’ });


Discussion

No Comment Found