I'm new to Yii framework. I have two dropdownlists with their values hardcoded in properties file. The dropdownlists are created using the below code:
<?php
$this->widget('ext.combobox.EJuiComboBox', array(
'model' => $model,
'attribute' => 'min',
'data' => Yii::app()->params['min_values'],
'options' => array(
'allowText' => false,
),
'htmlOptions' => array('placeholder' => 'Min', 'style'=>'width:70px'),
));
?>
So now I want to get the hardcoded values in second dropdownlist based on first.
If first dropdownlist has hardcoded values[1,2,3,4] and second dropdownlist has hardcoded values [1,2,3,4]. Suppose I select 2 in first dropdownlist, the second dropdownlist should have values 3 and 4(greater than value selected in first). How can I do this?