title: JQuery loop hide items
body: <p>I want to show only 4 item and hide other items. how i can do it</p>
  
  <pre><code>$(".item").each(function(i, e){
        if(i == 4 ){
            $(this).addClass("hide");
        }
    })
  </code></pre>