Giridhar_Metikal Member since 2014 95 posts
Instellars Global Consulting
Posted: December 24, 2016
Last activity: October 4, 2018

How to identify the element that triggered the event in JavaScript

Hi All,

I have configured 'Run Script' action on 'Change' event for a RTE (Rich Text Editor) Control. Now, I want the inner text of the element that generated the event.

I have tried using '' but this is not letting my JavaScript execute altogether may be because it there is no 'onchange' attribute created. Instead, 'data-change' attribute is created.

The requirement is I have to calculate remaining characters (Max being 2000) and show it to the user on the fly. PFA doc for design screenshots.

Can somebody help me on this?

Thanks in advace.

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

User Interface
Moderation Team has archived post
Share this page LinkedIn