sorry for trouble but i am not getting how it will work
here is my code
===view code ==
<?php
$country = new CDbCriteria;
$country->order = 'CountryName ASC';
$country->condition = 'CountryName!=""';
echo $form->dropDownList($model,'CountryID',CHtml::listData(Country::model()->findAll($country),'CountryID','CountryName'),array('class'=>'formList',
'prompt'=>'Country',
'ajax' => array(
'type' => 'GET',
'url' => CController::createUrl('property/dynamiccity'),
'update' =>'#'.CHtml::activeId($model,'CityID')
),
)
);
?>
<?php
$city = new CDbCriteria;
$city->order = 'CityName ASC';
$city->condition = 'CityName!=""';
echo $form->dropDownList($model,'CityID',array(""=>"City"),array('class'=>'formList','ajax' => array('type' => 'GET','url' => CController::createUrl('property/dynamicprojects'),'update' =>'#'.CHtml::activeId($model,'ProjectID')
),
)); ?>
this is my slider field here i want to set value
<input id="Slider5" type="slider" name="area" value="0;1000" style="display: none; ">
===end view code ==
===controller action ===
public function actionDynamiccity()
{
$criteria = new CDbCriteria;
$criteria->condition = "CountryID='".$_GET['Properties']['CountryID']."'";
$data = City::model()->findAll($criteria);
$data = CHtml::listData($data,'CityName','CityName');
echo CHtml::tag('option',array('value'=>0),CHtml::encode('City'),true);
foreach($data as $value=>$name)
{
echo CHtml::tag('option',array('value'=>$value),CHtml::encode($name),true);
}
}
===end action=====
can you please tell me how to pass price range from this action from here only the <option …>value</option> returning
thanks in advance