MCQs > IT & Programming > JQuery > Which is better approach to create jQuery plugin?

JQuery MCQs

Which of the following is better approach to create jQuery plugin?

Answer

Correct Answer: (function( $ ) { $.fn.menu = function( action ) { if ( action === "open") { // Open Menu code. } if ( action === "close" ) { // Close Close code. } }; }( jQuery ));

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