I'm trying to select the 2nd option by default using javascript. The HTML is generated by another library so I don't have control of it.
The input look like this.
HTML code
As you can see, select does'nt have a class so I need to access to it by the div such as
document.querySelector(".rule--field > select")
but I don't know exactly how is it.