title: Change focus with arrow
body: <p>I have followed <a href="https://stackoverflow.com/questions/11088674/shift-focus-with-arrow-keys-in-javascript/11088844">Shift focus with arrow keys in JavaScript</a> , but it doesn't work for me.<br>
  Are there other ways to change focus between input fields using tabs?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$(document).keydown(function(e) {
    if (e.keyCode == 39) {
      $(".move:focus").next().focus();
    }
    if (e.keyCode == 37) {
      $(".move:focus").prev().focus();
    }
  });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;table id="table" class="table table-bordered table-hover dataTable" style="width:100%"&gt;
    &lt;thead&gt;
      &lt;tr&gt;
        &lt;th&gt;RM Code&lt;/th&gt;
        &lt;th style="width:10%"&gt;Wh&lt;/th&gt;
        &lt;th style="width:10%"&gt;Quantity&lt;br&gt;Recipe&lt;/th&gt;
        &lt;th style="width:10%"&gt;Weight/&lt;br&gt;Mixer&lt;/th&gt;
        &lt;th style="width:10%"&gt;No of&lt;br&gt;Weighting&lt;/th&gt;
        &lt;th style="width:10%"&gt;Qty Used&lt;br&gt;Actual&lt;/th&gt;
      &lt;/tr&gt;
    &lt;/thead&gt;
    &lt;tbody&gt;
      &lt;tr class="details"&gt;
        &lt;td&gt;
          &lt;input type="text" id="rm_code[]" name="rm_code[]" placeholder="Enter your Name" class="form-control move" /&gt;
        &lt;/td&gt;
        &lt;td&gt;
          &lt;input type="text" id="wh[]" name="wh[]" placeholder="Enter your Name" class="form-control move" /&gt;
        &lt;/td&gt;
        &lt;td&gt;
          &lt;input type="text" id="quantity_recipe[]" name="quantity_recipe[]" placeholder="Enter your Name" class="form-control move" /&gt;
        &lt;/td&gt;
        &lt;td&gt;
          &lt;input type="text" id="weight_mixer[]" name="weight_mixer[]" placeholder="Enter your Name" class="form-control move" /&gt;
        &lt;/td&gt;
        &lt;td&gt;
          &lt;input type="text" id="no_of_weighting[]" name="no_of_weighting[]" placeholder="Enter your Name" class="form-control move" /&gt;
        &lt;/td&gt;
        &lt;td&gt;
          &lt;input type="text" id="qty_used_actual[]" name="qty_used_actual[]" placeholder="Enter your Name" class="form-control move" /&gt;
        &lt;/td&gt;
      &lt;/tr&gt;
    &lt;/tbody&gt;
  &lt;/table&gt;</code></pre>
  </div>
  </div>
  </p>