[jQuery] Re: Need help learning

2010-01-06 Thread Šime Vidas
this refers to different objects depending on where we are in the code... (function($) { $.fn.myPlugin = function() { // here this refers to the jQuery object on which the myPlugin method was called upon this.each(function() { // here this refers to the matched

[jQuery] Re: Need help learning

2010-01-06 Thread Šime Vidas
If you want to manipulate with the DIV inside the $.get function, you can declare a local variable and put the reference to DIV in it... (function($) { $.fn.myPlugin = function() { this.each(function() { alert(this.id); var

Re: [jQuery] Re: Need help learning

2010-01-06 Thread Mark Tank
Thank you, you have help out so much On Jan 6, 2010, at 6:14 PM, Šime Vidas wrote: If you want to manipulate with the DIV inside the $.get function, you can declare a local variable and put the reference to DIV in it... (function($) { $.fn.myPlugin = function() {