get the HTML Element by Common Name

1
Hi All Can we get the element by the Common Name of wiget in Javascript code,  or only by the class?  
asked
1 answers
0

Hi you can find an element in the dom by the common name in the modeler.

Each widgets gets a className depending on it’s name in the modeler. In your case to get the column2 element:

var wantedElement = document.getElementsByClassName(“column2”)[0];

Don’t forget to take index [0] since the action returns an array.

answered