I have two dropdownmenus in a form. I used the below code to create a dropdownmenu
<?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'),
));?>
The above dropdownmenu fetches the values from a hardcoded properties file. Now I want to create a similar dependent dropdownmenu which fetches the value greater than the one selected in the first dropdownmenu.
If first dropdownlist has values[1,2,3,4] and second dropdownlist has 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). The hardcoded values for both dropdownlists are different.
How can I do this?