For example, in the "From" and "To" dropdown list:
before the "State" is selected, the "city" is disabled;
after the "State" is sected, the "city" is loaded.
Is there any general way to do these without considering languages (asp, jsp, php...)? or What are the key techniques to achieve this feature?