how can i write a plugin/function and then be able to call it like this(no selector required)
$.function()
noe i write my plugins something like this:
(function($){
$.fn.extend({
//function name
myFunction : function(){
//...........
}
});
})(jQuery);