how can i get this.V2 out of the FN scope !?
$.fn.myFN = function(X){ this.V1 = X; this.V2 = X+2;};$("#foo1").myFN(10);$("#foo2").myFN(20);console.log( $("#foo2").V2 ) // this returned undefined
Aucun commentaire:
Enregistrer un commentaire