title: Can't focus back to input field after blur
body: <p>So I have look at most related link on my problem and can't seems to make it work.</p>
  
  <p>Tried the workaround on this link <a href="https://stackoverflow.com/questions/27071752/jquery-focus-back-to-the-same-input-field-on-error-not-working-on-all-browsers">jquery focus back to the same input field on error not working on all browsers</a> but it didn't work for me.</p>
  
  <p>I have a javascript that evaluate the value of an input field on exit (blur).  That works well.  The problem is when the value is wrong, I show an alert, delete the content of the field and set the focus back on the faulty field.</p>
  
  <p>There comes the problem. In Firefox, the focus will still go on the other field which I clicked on (triggering the blur() of the previous field).
  In IE(11.0.9600) or Chrome(64.0), the alert shows but keeps coming back in  some sort of infinite loop.  I have to kill the browser.</p>
  
  <p>So here is a VERY truncated version of my HTML:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html class="OUTPUT WEB CHANNEL_WEB simplex" section="ChargesLinesList" dpi="96" scale="1.0"&gt;
  &lt;input id="dateBilled" class="myDateField" name="dateBilled" value="2018-01-18" type="text"&gt;
  &lt;input id="dateBilled" class="myDateField" name="dateBilled" type="text"&gt;
  &lt;input id="dateBilled" class="myDateField" name="dateBilled" type="text"&gt;
  </code></pre>
  
  <p>and this is my code to validate the value and show the alert:</p>
  
  <pre><code>$(".myDateField").on("blur", function(event){
      var myDateFormat = /^(((((1[26]|2[048])00)|[12]\d([2468][048]|[13579][26]|0[48]))-((((0[13578]|1[02])-(0[1-9]|[12]\d|3[01]))|((0[469]|11)-(0[1-9]|[12]\d|30)))|(02-(0[1-9]|[12]\d))))|((([12]\d([02468][1235679]|[13579][01345789]))|((1[1345789]|2[1235679])00))-((((0[13578]|1[02])-(0[1-9]|[12]\d|3[01]))|((0[469]|11)-(0[1-9]|[12]\d|30)))|(02-(0[1-9]|1\d|2[0-8])))))$/;
      if(!myDateFormat.test($(this).val())){
        alert('Invalid date or format.  Make sure you the format his YYYY-MM-DD and the date is valid');
        $(this).val("");
        $(this).focus();
      }
  }) 
  </code></pre>