Hello !
I have following code:
echo CHtml::beginForm();
echo CHtml::textField('driver_available_since','', array('size'=>100,'maxlength'=>50), array('class'=>'special-textfield'));
echo CHtml::hiddenField('id', ''.$driverArrayId1[$j]);
echo " ";
echo CHtml::ajaxSubmitButton (
'Add',
Yii::app()->controller->createUrl("session/updateDriverAvailable"),
array(
'name' => CHtml::encode('button'.$driverArrayId1[$j]),
)
);
echo CHtml::endForm();
I don’t know why when I enter number in the textField thing is ok, but when entering text, the text doesn’t pass to controller action.
Any suggestion would be appreciated.