Wixweather Widget

How can I programmatically change the location city on the widget?

I have a page that uses a drop down to allow users to select a state. I would like the selected state to be the location for the weather widget.

Any help is appreciated…