Hide parent if child contains class
<p>I followed this <a href="https://stackoverflow.com/questions/16532109/jquery-hide-parent-td-if-contains-child-input-with-specific-class#16532145">jQuery: Hide parent &lt;td&gt; if contains child &lt;input&gt; with specific class?</a> but its not working in my code:</p>

<pre><code>$(function() {
$(".video-list-item").filter(function() {
     return $('span', this).hasClass('.view-count');
}).hide();
});
</code></pre>

<p><a href="https://jsfiddle.net/xzeeuotL/" rel="nofollow noreferrer">https://jsfiddle.net/xzeeuotL/</a></p>