title: Get cursor position (in characters) within a text Input field
body: <p>How can I get the caret position from within an input field?</p>
  
  <p>I have found a few bits and pieces via Google, but nothing bullet proof.</p>
  
  <p>Basically something like a jQuery plugin would be ideal, so I could simply do</p>
  
  <pre><code>$("#myinput").caretPosition()
  </code></pre>