Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

Thank you for posting to my question about functions. I tried to use your explanation to fix my functions but the way the book wants me to do them is...

Thank you for posting to my question about functions. I tried to use your explanation to fix my functions but the way the book wants me to do them is a little different. If you have time would you be able to help me? My functions are:

function init() {var submenuHeads = document.getElementsByClassName("submenuHead");for (var i = 0; i submenuHeads[i].onclick = showMenu;}}function hideAllMenuLists() {var allMenuLists = document.quarySelectorAll("li.submenu ul");for (var i = 0; i allMenuLists[i].style.display = "none";}}function showMenu() {var subIndex = parseInt(this.id);var allMenus = document.getElementByClassName("submenu");var currentMenu = document.getElementById(allMenus);var currentMenuList = currentMenu + ".ul[0]";currentMenuList.style.display = "none";}

I can send the steps and link my folder if you need.

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question