DEV Community

George
George

Posted on

Features of cursor setting to input

Hello every one πŸ‘‹πŸ™‹β€β™‚οΈ

I would to share some experience about different behavior position cursor of input when use function focus().

  • if value for input element is set across attribute, then when function focus() is called then cursor will set in start.

  • if value for input element is set across property of value, then when function focus() is called then cursor will set in end of input.

example different of behavior cursor of input

here you could try this example https://jsfiddle.net/g1nfcv98/

Top comments (0)