Howdy,
i think iam going crazy ..
I have an webpage where iam displaying news comments dynamicly , the "Comment" link is connected to an JQuery function wich is displaying the comments for the news (..like show comments from news id = x)
But "onClick" handlers arent the best way or?
Thats my code in the moment :
echo '<li>';
echo "<a href='#' onClick='showhideComments({$news['id']});'>" .
$this->translate('INDEX_COMMENTS'). " ($count)". "</a>";
echo '</li>';
Any suggestions ? (the link part is running an an foreach loop to set the right id)