How to use jQuery in object context ?
Hi all !
I have a problem using jQuery in an object context. "This" keywords to refer to myObject is not usable in a jQuery function...
var myObject = function (){
this.myProperty = "value";
$('#divId').click(function(){
$(this).html(this.myProperty);
});
}
How to solve this problem ?
Thanks