Help with automatic Country-State selection form

Help with automatic Country-State selection form

I'm trying to create a form where I can select the State based on the Country field. In other words, if the Country field is "United States" I need the State field to show only the States that belong to the United States. If the Country is Canada, it should show only Canadian States and so on.

Can anyone help with a Script for such form?

Thanks,

Ed Silva.
edsilva7