Good morning, how can render div with mathjax after ajax data is inserted into it? I have read some posts but could not find :(. It is working only one time. second and third time not working. I have tried also to put
MathJax.Hub.Queue(["Typeset",MathJax.Hub, "test"]);
after and before ajax insertion.
$this->widget('bootstrap.widgets.TbButton', array(
'htmlOptions' => array('id'=> 'start'),
'buttonType'=>'ajaxButton',
'type'=>'primary',
'label'=>'Start',
'url'=>CController::createUrl('site/next'),
'ajaxOptions'=>array(
'type'=>'post',
'data'=>array('row'=>$row),
'success'=>'function(data){
$("#test").html(data);
MathJax.Hub.Queue(["Typeset",MathJax.Hub, "test"]);
}' )
));