what is this here ?
Obviously 'this' is mText object
But why it does not work if I replace
? (otherobject on click gets allways the vallue of arr)
this in that code should refer to the div that you created four lines earlier. So this.title will refer to the arr value that you assigned to it three lines earlier but which will no longer be directly accessible when the onclick code runs.
|All times are GMT +1. The time now is 08:51 AM.|
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.