As focus move cursor to end of line in input number?

0 like 0 dislike
6 views
Tell me how when you focus on the

move cursor to end of line?
In input is the default value.
by | 6 views

1 Answer

0 like 0 dislike
in one project I use the following crutch

$input.addEventListener("focusin", function(){ var val = $input.value; $input.value = "; $input.value = val; });
by

Related questions

0 like 0 dislike
2 answers
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
2 answers
0 like 0 dislike
1 answer
110,608 questions
257,186 answers
0 comments
33,909 users