Imagine I have 4 divs with the same class but unique ID's like this;
<div id="Komori1" class="press">
<div id="Komori2" class="press">
<div id="PressD" class="press">
<div id="PressE" class="press">
Now, if I create an array in the script as shown below;
var pressArray =[]
How can I populate this array with the ID names of all elements with the class name "press" in the HTML body?