title: Adding tabindex dynamically
body: <p>I'd like to add <code>tabindex</code> to all form elements. The form is dynamic and I can't add it to the HTML. I would like to run it as a function.</p>
  <p>If there are several radio buttons with the same name, each must have it's own <code>tabindex</code> value. Most of the form elements on page start as <code>&lt;input&gt;</code>, except <code>&lt;select&gt;</code>. How do I account for that?</p>
  <p>I guess I will need to run a loop and add the attribute, right?</p>
  <pre class="lang-js prettyprint-override"><code>var n = 1; 
  
  $('input, select').each(function() {               
      $(this).attr('tabindex', n++);
  });
  </code></pre>