I am trying to understand the jquery plugin syntax, because I want to merge two plugins into one. The blinker that also needs to be able to stop de interval or run a number
jQuery.extend({ abc: function(){ alert('abc'); } });
usage: $.abc(). (No selector required like $.ajax().)
$.abc()
$.ajax()
jQuery.fn.extend({ xyz: function(){ alert('xyz'); } });
usage: $('.selector').xyz(). (Selector required like $('#button').click().)
$('.selector').xyz()
$('#button').click()
Mainly it is used to implement $.fn.each().
$.fn.each()
I hope it helps.