Is there anybody here who knows the Javascript-equivalent or the Javascript version of the code below?
(function($) {
$.fn.green = function() {
var selector = this;
selector.css('color' , 'green');
};
})(jQuery);
And so on I will call this :
$('p').green();