The AJAX example module provides many examples of AJAX including forms, links, and AJAX commands.
Simplest AJAX Example
Generate textfields
Submit-driven AJAX
Dependent dropdown
Dependent dropdown w/ no JS
Dynamic form sections
Dynamic form sections w/ no JS
AJAX Wizard Example
AJAX Wizard Example w/JS turned off