hello,
I have problem with Ajax (Not posting data when form submits see screenshot),
task is {
showing the selected field of search on Success, like what user selected!
}
Yii::app()->clientScript->registerScript(‘search’, "
$(’.search-form form’).submit(function(){
$.fn.yiiGridView.update('violence-mentioned-grid', {
data: $(this).serialize()
});
[b][i] jQuery.ajax({
'success': function(data) {
$('#Description').text(data);
},
'type': 'POST',
'data': $(this).serialize(),
'url': '".$this->createUrl('/violencementioned/contentText')."',
});[/i][/b]
return false;
});
");
<div id="Description"></div>
Please help me in this or other solution for above problem , if you can !
thanks