title: The first element will error message to go on focus. Javascript
body: <p>I have a form with some input fields:</p>
  
  <pre><code>Folder Name:
  &lt;input type="text" id="folderName" name="folderName" data-bind = "value: FolderName" /&gt;
  
  Prefix:
  &lt;input id="prefix" name="prefix" data-bind = "value: Prefix" /&gt;
  </code></pre>
  
  <p>I validate those fields using jquery validation plugin:</p>
  
  <pre><code>rules: {
              folderName: {
                  required: true
              },
              prefix: {
                  required: true,
                  exactLength: 4
              },
  }
  </code></pre>
  
  <p>When submitting the form with empty fields, error messages are displayed for both inputs. What I want to accomplish is the first element with error message to go on focus. My skills in javascript are rather poor so any working example will be greatly appreciated. Thank You!</p>