Hi,
please take a look at the following source,
- jQuery.fn.extend({
- colorbox : function (option) {
- // do some thing;
- };
- });
- var cb = jQuery.colorbox = {
- c : {},
- obj: {
- self: function(){
- //get div object who called like this: $(div).colorbox();
- }
- }
- };
This is a plugin Some uncertain div would call colorbox() to make a colorbox. Then, how to get this div object in self() function?