multiple forms with ajax

I want to create a form such that when the first form is submitted,
the second form is triggered based on the user input ( ex: selection
from a drop down list) .
Are there any examples for this?
Thanks
Meenal