Which of the following is better approach to create jQuery plugin?
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
More JQuery MCQ Questions