This is a migrated thread and some comments may be shown as answers.

Reference the target element in UI event handlers

1 Answer 94 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Stevo
Top achievements
Rank 1
Stevo asked on 03 Dec 2014, 11:34 AM
Hi,

is there any way to get hold of the target html element in a event handler?

say e.g. in a ListView.dataBound event, how do I get hold of the ListView html element that is displaying the data?

Thanks,
Stevo

1 Answer, 1 is accepted

Sort by
0
Stevo
Top achievements
Rank 1
answered on 03 Dec 2014, 12:06 PM
Never mind, I just discovered it

 e.sender.element

would we worth adding this to the documentation next to each event

Regards,
Stevo
Tags
General Discussions
Asked by
Stevo
Top achievements
Rank 1
Answers by
Stevo
Top achievements
Rank 1
Share this question
or