javascript - HTML: select default option when select tag holds a function -
I have this dropdown: & lt; Select & gt; [_Perl function that creates and gives options]] There are only two options, current and previous, but the perl code "omits" option omits. PRL Return "Option VALUE = \" $ item \ "SELECTED> $ item Where $ item is a entry in a dynamically-built list. I have already asked if I can change this very complex design, but I do not have permission, I want to throw some JS on it, though, I do not know how with Pearl Have a conversation. I found that you can hold the DOM element and in this case, the current or Set in the previous and it is not enough to add another option to your smartphone. It turns out that I did not have to deal with Pearl at all. Onkidown in a text element I wanted to define to choose, my JS looks function defaults turned on (& lt; Domamement.name & gt; ) {If (& lt; DOMelement .name & gt; == "& lt; specific state as first & gt;") {var ...