Create chained select for country and city

Is it possiable to create chained select for a list of countries and cities. Also how can i create a search widget with ajax integration?

Thank you