title: Find Cursor in which input
body: <p>I have two inputs </p>
  
  <pre><code>&lt;input id="foo" name="foo"/&gt;
  &lt;input id="bar" name="bar"/&gt;
  </code></pre>
  
  <p>How to find cursor present in which input?</p>
  
  <p>I am able to find position of cursor in it, but I need to know in which input cursor exists.</p>