Forum Moderators: open
1 - Load all the states / country combinations into a hidden variable and parse it with JavaScript as the input changes.
2 - Use AJAX. Have a script that returns the states for a country passed and use an HTTPrequest object to open this script when you change countries.
Personally, I'd go for #2.