Php & javascript country and state/prov dropdown issue

Hi

On my form I have a country select list and a state_prov select list.
If the user selects the country “United States” or “Canada” the state_prov select list is updated accordingly.
This works great on the form where the user can add a record, however on my modify form (attached), I can’t
seem to get the stateprov variable I get from my table to update the state_prov select list.

I renamed the file extensions to .txt to upload them.

Can someone pls point me in the right direction.

Thanks.