Quantcast
Channel: OutSystems Community
Viewing all articles
Browse latest Browse all 1476385

[Forums] Find class or id name using Javascript

$
0
0

Hi Amos,

I can see some "problems" with your code.

1. 

var element = document.getElementByClassName(inputId);

This will search for ClassName instead of element Id.

2.

getDateTime("+DateTitle.Id+");

Here, you have to pass the id as string in order to concatenate in your funcion.

try: 

getDateTime('"+DateTitle.Id+"');

Summary:

changes to make on your function:

var element = document.getElementById(inputId);

changes to make on your expression:

getDateTime('"+DateTitle.Id+"');


Hope it helps.

Cheers



Viewing all articles
Browse latest Browse all 1476385

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>