Focus input field with JQuery without selecting current value text

forms, html, javascript, jquery

Solution

I've searched around a bit and kinda found out that you should re-set your value into the desired field after it is focussed on.

Problem

``` $("#myinputfield").focus(); ``` Doing that on an input field with it's value already set causes the current value to be selected. How can I focus the field without selecting the text?

Original source

Related problems