Is there a good guide for writing jQuery plugins?

Hello, I navalawala plenty of tons of it scattered all the html pages of code, I would like to learn a more constructive approach to organization finishing js + jquery code.

Tell me are there any good tutorials on writing jquery plugins, which include not only the initialization of the plugin and consider the questions:
  • Approaches to design;
  • Event handling.
  • Initialization parameters;
  • Facilities management;


Maybe You will tell more necessary criterion?
July 9th 19 at 13:13
2 answers
July 9th 19 at 13:15
To do this, there are frameworks - Angular, React.js etc., first, it is necessary to look at them and think if one does not like to write own framework and jQuery plug-ins actually have a different purpose, that is, if you need to add some functions to the standard "objects" of jQuery:
$("#id").your_own_function();
A jQuery plugin that extends the functionality of, or accelerate the development of (function,"helper"), can also be included in the composition of its framework, but do not need everything to do the jQuery plugins.
Well, the problem is about jquery plug-ins as an orderly function module to the frontend system - Sydnee_Schoen commented on July 9th 19 at 13:18
: If the task is, do it as a plugin, but the question should be put, as if written by the framework, respectively, to study existing frameworks. - mazie.Towne commented on July 9th 19 at 13:21
July 9th 19 at 13:17

Find more questions by tags CSSHTMLJavaScriptjQuery