title: How can I delay focus event in jquery?
body: <p>I have a few buttons on my page and I want to switch focus on each on of them with a certain delay. How I can achieve that with jquery or pure javascript. This is the idea I have for iterating along all my buttons but I obviously end up with the focus on my last button.</p>
  
  <pre><code>$(document).ready(function() {
  var allButtons = $(":button");
  for (i=0;i&lt;=allButtons.length;i++) {
     $('.category_button')[i].focus()
  }
  });
  </code></pre>