Response title
This is preview!
var MiClass = function () { this.messageAlert = "Hello"; }; MiClase.prototype.showAlert = function () { $(".nodes").each( function(index,element) { alert(this.messageAlert); }); };
In this example, the code shows undefined, because "MiClass" is not contextualized within the
callback function.
Anyone know how to do?
Thanks.
© 2013 jQuery Foundation
Sponsored by and others.