MCQs > IT & Programming > JQuery > Correct way to hide a menu div by clicking outside the menu div?

JQuery MCQs

Which of the following is the correct way to hide a menu div by clicking outside the menu div?

Answer

Correct Answer: $('html').click(function() { //Hide the menus if visible }); $('#menucontainer').click(function(event){ event.stopPropagation(); });

Explanation:

Note: This Question is unanswered, help us to find answer for this one

JQuery Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

JQuery Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it