[jQuery] retrieving object-property when defining eventhandler
Hello,
my question is more javascript-relating, but I'm developing my first
jQuery-plugin and try to get to an object-property when I'm defining
an eventhandler in another function.
It looks like this:
someProperty: "property",
doSomething: function(){
//$(this) is a jQuery object
//now I define an eventhandler to $(this)'s next element
$(this).next().keydown(function(){
//now $(this) is the next-element-object
//but how to acces .someProperty of the original object?
});
}
I'm a bit confused, maybe I should take a breath of air ;-)
Thank you in advance!
Marc