title: How to get index position in textBox using javascript
body: <p>How do i get the index position when user click in textBox using JavaScript?
  for example in my textBox have this string :</p>
  
  <pre><code>`this is best| of the world`.
  </code></pre>
  
  <p>it should be return 13.</p>