Hello,
i am trying following.
Yii::app()->clientScript->registerScript('register_script_name', "
$('.text-warning').click(function(){
var id = $(this).attr('value');
alert(id);
$.ajax({
type:'POST',
url:'/jobMaster/test'/id/'+id,
success:function(ajaxresponse){
},
error:function(ajaxresponse){
});
},
});
return false;
});
");
my ajax url " url:’/jobMaster/test’/id/’+id," doesn’t called. what is wrong?