I'm trying to change a select field programatically using Javascript.
On this site : https://texttospeech.wideo.co/
I want to change the select where the user chooses the voice :
To do so, i'm using this code :
document.getElementsByClassName('MuiSelect-root MuiSelect-select MuiInputBase-input MuiInput-input')[0].value = 'en-AU-Standard-A';
This code SEEMS to work, the select changes for this option, but not really : when i click on the select, it goes back to the previous selection ; if i submit the form, it will submit the previous option, not the one i selected via code.
Looks like besides my code, i need to do something more. What would it be ?