Implementing countries and states drop down

My advice is to use observer field, instead using javascript codes.
its really messy

Check this link for observer field, same like that you can do it for
select.

http://www.recentrambles.com/pragmatic/view/59