Reputation: 2856
I'd like to have a section with two dropdowns which effectively dictate which model to use. I would like this to have a button with an onclick property that essentially clears the form, and replaces it with a new form, based on the new model.
Is there a way to do this in Yii, or perhaps a better way to achieve this functionality?
Upvotes: 2
Views: 674
Reputation: 1424
You can do this with or without ajax.
With AJAX:
Without AJAX:
Upvotes: 1