I'm using the Chrome console to try this because I would use it as a script to save time on a task I do.
The idea is this, I have this
<div id="seccion1">
<select>
<option value=1>Ejemplo 1</option>
<option value=2>Ejemplo 2</option>
</select>
</div>
<div id="seccion2">
<select>
<option value=1>Ejemplo 1</option>
<option value=2>Ejemplo 2</option>
</select>
</div>
Then I want the section select1, when the app is loaded, from the browser and with the console to set the value of the select, the issue is that as it does not have its own ID, I can not use the getElementById, not really I know how to do. Any ideas?