Created
October 8, 2018 13:19
-
-
Save kuznetsovandrey76/7c544baa54a3042f4976389feef82c6e to your computer and use it in GitHub Desktop.
jQuery plugin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function( $ ) { | |
| $.fn.myPlugin = function() { | |
| // Тут пишем функционал нашего плагина | |
| $(this).click(function(){ | |
| $(this).css('color', '#ff0000'); | |
| }) | |
| // =================================== | |
| }; | |
| })(jQuery); | |
| $('p').myPlugin() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment