my problem is next ... I want to access the ID attribute of an element but selecting it by its class, that is ..
this is the element.
<div class="capaClickeable" id="1"></div>
select it with getElementsByClassName because they are multiple elements
var id = document.getElementsByClassName('capaClickeable');
as it is obvious that each div has the class="capaClickeable"
and a id="1" id="2"
... etc.
I want to access those ids and save them in an array or something like that. Thanks in advance.