I’m having a hard time figuring out how to manipulate an ajaxLink after the ajax call is successful. Below is my code, why would this not work? How can I do something as simple as hiding the link after the ajax call is successful?
echo CHtml::ajaxLink(
'Click Me',
array('user/assign'),
array(
'type' => 'POST',
'success' => "function( data )
{
$(this).hide();
}",
'data' => array('group_id'=>$group->id, 'action'=>$action)
));