Question: 2 . Use your code editor to open the project 1 2 - 0 1 _ txt . html and project 1 2 - 0
Use your code editor to open the projecttxthtml and projecttxtjs files from the js c project folder. Enter your name and the date in the comment section of each file and save them as projecthtml and projectjs respectively.
Go to the projecthtml file in your code editor. Add a script element to load the latest minified build of the jQuery library from the CDN on the jQuery website. Add another script element loading the contents of the projectjs file. Take some time to study the contents and structure of the document and then close the file, saving your changes.
Go to the projectjs file in your code editor. Below the comment section insert jQuery code that runs an anonymous function when the page is loaded and ready. Within the anonymous function do the tasks described in Steps and
Create a jQuery selector for the lisubmenu element. Attach the mouseover method to the selector that runs an anonymous function. Within the anonymous function apply the show method to $ecurrentTargetchildrenul selector to show the contents of the dropdown menu during the mouseover event.
Chain the mouseout method to the lisubmenu selector. Within the anonymous function apply the hide method to $ecurrentTargetchildrenul selector to hide the contents of the dropdown menu during the mouseout event.
Save your changes to the file and then open the projecthtml file in your browser.
Verify that when you move the mouse pointer over any of the three menu headings, a submenu appears below the heading and that when you move the pointer off, the submenu disappears.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
