Hello, I'm trying to get started with writing a jquery plugin, have been reading tutorials but am stuck at the beginning.. Here's what I have:
(function($) {
$.fn.testPlugin = function(options) {
this.each(function() {
alert($(this));
});
}
})(jQuery);
I'm calling it with:
$('#id').testPlugin();
It doesn't however get into the this.each function...
Basically I just want to simply get what is being called, in this case, id: id.... and then I'll be doing some stuff with that...