title: jQuery - hide all elements except first one
body: <p>Let's say I have 10 buttons. I want to hide all the buttons except the first one.</p>
  
  <p>Im trying to accomplish it using each() in jQuery but its not working.</p>
  
  <p>Here's my script. This is only a test to see if I can get the index of the buttons. There are no errors appearing.</p>
  
  <pre><code>$('button').each(function(index){
      alert(index);
  });
  </code></pre>
  
  <p>Additional Info:</p>
  
  <p>My whole script is this</p>
  
  <pre><code>$(function(){
     $('div#here').load('test.php'); // This is where all the buttons will come from
     $('button').each(function(index){
         alert(index);
     });
  });
  </code></pre>