first of all
you can’t assign anything to $w(“#dropdown1”).value
you can assign new things to it using $w(“#dropdown1”).options.
how you do that you can see here
https://www.wix.com/corvid/reference/$w.Dropdown.html#options
so to begin with you should remove that from your onReady().
then to see what is going wrong.
in your onChange function
do console.log(“this is the value : " + $w(”#dropdown1").value + “this is the type of the value : " +typeof $w(”#dropdown1").value)
it could be by removeing evrything in the onready() that evrything works as it should.