What is actually wrong with this jQuery code?
<p>I made a code so people can vote on a news article. The problem is, this script works fine to like it. The exactly same code to dislike the news doesn't work? And I don't know why. </p>

<pre><code>$('.onclickDislikeNews').click(function(){
    var newsId = $(this).attr('id');
    var countDislikes = parseInt($('.newsDislikes' + newsId).html());
    $.post("127.0.0.1/news/dislike/" + newsId);
    $('.newsDislikes' + newsId).html(countDislikes+1);
    $(this).hide();
    $('.onclickLikeNews').hide();
    $('.onclickLikeNewsFade' + newsId).show();
    $('.onclickDislikeNewsFade' + newsId).show();
});
</code></pre>

<p>I dont really know what to do anymore because I can't find something.</p>

<p>This is the html what belongs to it: </p>

<pre><code>&lt;center class="newsDislikes5"&gt;2&lt;/center&gt;

&lt;div class="icon &lt;?php if($vote_count == 0){ ?&gt; onclickDislikeNews &lt;?php } ?&gt;" id="5"&gt;&lt;div class="cross"&gt;&lt;/div&gt;&lt;/div&gt;

&lt;?php if($vote_count == 0){ ?&gt;

    &lt;div class="icon onclickDislikeNewsFade5" style="display: none;" id="5"&gt;&lt;div class="cross"&gt;&lt;/div&gt;&lt;/div&gt;

&lt;?php } ?&gt;
</code></pre>
