I've an application using yii2 framework. I'm trying to use select option (dropdown select), and I use Kartik Select2.
This is the view of my select option
In pics above you can see I've two select option, but I've condition. This is the condition.
My first dropdown option(transaction id) contain 2 options, there are
- Buy
- Sell
and if user choose the 1. Buy
, the second dropdown option(payment method) will show
- Cash
- E-money transaction
as options, and will show
1. Cash
only as option if user choose2. Sell
.
How do I can do it using Kartik Select2?
Any help will be apreciated.
Thanks.