title: How do I input a value in dropdown with input type text using JS?
body: <p>I'm trying to do a automated flow using JS in Power automate, for form filling.
  I'm struggling with the dropdowns that are on the website. Inspecting the elements, there is no values in the dropdown available, only when selecting them manually. I tried to run the following line</p>
  <pre><code>document.getElementById('type').value=&quot;EORI&quot;;
  
  
  document.querySelectorAll('input[Id=&quot;type&quot;]')[0].value=&quot;EORI&quot;;
  </code></pre>
  <p>When running this, it does insert the text EORI in the dropdown, but it isn't being stored, meaning that if I perform an action like save, the field is still marked as empty? Is there some way to add the value without having to change the website structure?</p>
  <p>First image is without anything selected in the dropdown and secound image is when EORI is choosen in the dropdown. &quot;EORI&quot; is only the value, the name in the dropdown is &quot;EORI number&quot;, not sure if it matters.</p>
  <p><a href="https://i.stack.imgur.com/RTlVl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RTlVl.png" alt="Image of inspection of element" /></a></p>
  <p><a href="https://i.stack.imgur.com/wjP65.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wjP65.png" alt="Image of inspection with EORI choosen" /></a></p>