70-515 · Question #61
You create a Web page that contains drop-down menus that are defined by using div tags in the following code. <div class="dropdown-menu"> <div class="menu-title">Menu One</div> <div…
The correct answer is B. $(".dropdown-menu").hover(. See the full explanation below for the reasoning.
Question
You create a Web page that contains drop-down menus that are defined by using div tags in the following code. <div class="dropdown-menu"> <div class="menu-title">Menu One</div> <div class="menu-items" style="display:none;"> <div><a href="#">Item One</a></div> <div><a href="#">Item Two</a></div> </div> </div> <div class="dropdown-menu"> <div class="menu-title">Menu Two</div> <div class="menu-items" style="display:none;"> <div><a href="#">Item Three</a></div> <div><a href="#">Item Four</a></div> </div> </div> You need to write a JavaScript function that will enable the drop-down menus to activate when the user positions the mouse over the menu title. Which code segment should you use?
Options
- A$(".dropdown-menu").hover(
- B$(".dropdown-menu").hover(
- C$(".dropdown-menu").hover(
- D$(".dropdown-menu").hover(
How the community answered
(39 responses)- A8% (3)
- B85% (33)
- C3% (1)
- D5% (2)
Community Discussion
No community discussion yet for this question.