Quantcast
Channel: Yii Framework Forum
Viewing all articles
Browse latest Browse all 18717

Issue With Hiding Ajaxlink After Click

$
0
0
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)
));

Viewing all articles
Browse latest Browse all 18717

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>