Hello Felix, nice to see you again here.
But i have a bad message for you. I already tested such version and i tested your code and it dis not work for me. The same result as i already have had experienced before.
Did you test ist?
Does the code in this structure work for you?
Yes, like you i had the same idea (the same code) to controll all my DropDowns with just 3-lines of code (with a for loop).
But this seems not to work like this.
5-DropDowns have to be controlled and i do not want this one…
I will do it within a function, which will be called by every of the dropdowns.
This works for me, too. Like this one…
$w("#DD1").onChange((event)=>{ function X() )
$w("#DD2").onChange((event)=>{ function X() )
$w("#DD3").onChange((event)=>{ function X() )
$w("#DD4").onChange((event)=>{ function X() )
$w("#DD5").onChange((event)=>{ function X() )
//This is also good, but this is not realy a compress-solution 😁
$w('#DD1,#DD2,#DD3,#DD4,#DD5').onChange((event)=>{function X())
//And while a was writing this post, i had an idea, like this one....
$w('#DD1,#DD2,#DD3,#DD4,#DD5').onChange((event)=>{console.log(event.target.id), MEMrefs[0] = $w(event.target.id).value, SEARCH_ENGINE()})
// or even....
$w('#DD1,#DD2,#DD3,#DD4,#DD5').onChange((event)=>{console.log(event.target.id), MEMrefs[0] = $w(event.target.id).value, SEARCH_ENGINE(event)})
//YES, this is the right way. This could be the key to my solution.
//---> here i can get the number of ---> MEMrefs[0]
//event.target.id = DD1 / DD2 / DD3 ...and so on
//cutting the number of DropDown of the result ---> DD[3]
// I hope you understand, what i mean.