In showComments (), an ajax call and on success i tried:
$('#showCommentLink').text("Hide");
Im trying to change the text from show all comments to "hide" without results.
<a class='showCommentLink' href='javascript:showComments($displayWall[id]);' style='cursor: pointer;'>Show all $isThereAnyComments comments</a>
Have i missed something?