I want use ajaxSubmitButton submit form and alert the return,there is my code:
View
<?php echo CHtml::ajaxSubmitButton('Publish',array('Post/publishAjax'),array('success'=>'js:alert('aaa')')); ?>
Controller
public function actionPublishAjax() {
echo 'sss';
}
how can i get controller action return show in the popup message box?
thank you very much!