State & City Management

States

IdState NameRemove

Add State


Cities

IdCity NameState NameIs CapitalInfoRemove

Add City


Find City Details


Business requirement — Database Operation 15

Build a dependent-dropdown screen that displays the selected city’s complete details.

  1. Load every state into the State dropdown on page load.
  2. Keep City blank until a state is selected.
  3. Load only cities for the selected state.
  4. Automatically select that state’s capital when available.
  5. On Show Details, display all attributes below the form.