Features of cursor setting to input

twitter logo ・1 min read

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/

twitter logo DISCUSS
Classic DEV Post from Jul 27

If You Don't Know, Now You Know - GitHub Is Restricting Access For Users From Iran And A Few Other Embargoed Countries

Please help our cause against modern-day discrimination

George profile image