Look at observe_field in the API.
Basically, you have a select box with your countries, an observe field
that watches that select box and retrieves a new select box which is
placed in a div that you specify. Really easy actually (and that’s why I
love this framework!)