V
V
Vit2016-07-20 20:55:27
JavaScript
Vit, 2016-07-20 20:55:27

How to set cursor in input on click?

Source code: https://jsfiddle.net/cfnbuqg1/
How to set cursor in input on click? Tried input.focus() - doesn't work.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
X
Xbbv1, 2016-07-20
@reech

https://webref.ru/html/input/autofocus
is it?
also as a variant document.getElementById("name").focus();

O
Oleg, 2016-07-20
@politon

And where do you have input in general?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question