What I did to explore the issue is to start from the working code at https://jsfiddle.net/mithunu/8dpvjuf1/2/ to which I updated the code using the code that you supplied in your post. That code seems to be identical to what is in the working code. After that updated code is rerun, I select a city from the select list and submit it to get the weather.
- Do you get the problem only from the working code? I don’t for some reason.
- Is there a reason for you calling it “working code” when it doesn’t seem to work for you?
- Is there something else that I should do to try and experience your same problem?