I know this sounds pretty trivial, but the following function (return (
$this).each()...`) seems to be everything but alive in my plugin, wich means that i even don't get an alert. Do you have any suggestions for a possible problem? Thx in advance.
(function($){
$.fn.plugin = function() {
return $(this).each(function(){
var obj = $(this);
obj.css('background', 'blue');
alert(this);
});
};
})(jQuery);