Getting the ID from evt.getSource() for a ADFRichInputDate

onaled777
onaled777 used Ask the Experts™
on
My aim is to get the client id of a component.

The following two lines results in the popup shown in the attached files:

targetDateClientID = evt.getSource();
alert('targetDateClientID' + targetDateClientID);

The file attached gives an idea of the type of component involved and the id value that I want.

What field or method do I need to call from evt.getSource() to get the client id it1:0:id3 as shown at the end of the string?

How do i extract the id from this type of source
Error.PNG
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Author

Commented:
Meant to say  it1:1:id3 in the main question.
Top Expert 2016
Commented:
Worst case - do
targetDateClientID = targetDateClientID.replace(/.*id=/, ''));

Open in new window

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial