title: Detect when input is start/end focused
body: <p>I need to know if it's possible to detect when is input start focused and when is focus ended</p>
  
  <p>HTML code:</p>
  
  <pre><code>&lt;input type="text" value="" class="datas" &gt;
  &lt;input type="text" value="" class="datas" &gt;
  &lt;input type="text" value="" class="datas" &gt;
  </code></pre>
  
  <p>JQuery code(only example how i need this):</p>
  
  <pre><code>$('.datas').on('focusStart', alert("focusStarted"));
  $('.datas').on('focusEnd', alert("focusEnded"));
  </code></pre>
  
  <p>Anyone has any ideas?</p>
  
  <p>Thanks for it.</p>
  
  <p><strong>Answer:</strong></p>
  
  <p>JQuery code: </p>
  
  <pre><code>$(".datas").focus(function(){
      alert("This input field has starts focus.");
  });
  $(".datas").blur(function(){
      alert("This input field has lost its focus.");
  });
  </code></pre>