found solution:

        $('a').click(function()
        {
        var id = this.id.split('_')[1];
        $('#comment_'+id).fadeOut('slow');
        return false;
        });//end delete

Link:
<div id="comment_260"><hr /><a id="delete_260" href="#" style="float:
right">delete</a><a href="http://192.168.0.5/flog/xmode";>xmode</a> @
23/09/2008 00:30:27<br />testing...<br /></div>

Now it deletes the div completely. I just need to put the ajax
function which im doing now to delete the comment from the db... I
will post it soon

Reply via email to