title: Select previous input with jQuery
body: <p>How can I go back to the previous input when hitting backspace on an empty input?</p>
  
  <pre><code>    $('input').bind('input', function() {
          if (this.value.length &gt;= $(this).attr('maxlength')) {
              $(this).next().select();
          }
  
          if (this.value.length == 0) {
              $(this).prev().select();
          }
      });
  </code></pre>
  
  <p><strong>JSFIDDLE:</strong> <a href="http://jsfiddle.net/EwYKX/" rel="nofollow">http://jsfiddle.net/EwYKX/</a></p>