3
3
3042017-09-25 15:48:25
css
304, 2017-09-25 15:48:25

How does text dragging work in form fields?

By default, in forms, you can drag and drop text in this way:
nbd0wiTDhq.gif
On one of the sites, I encountered the fact that this does not work.
I would never have noticed it myself, but the customer uses this technique)
Interested in what attributes are responsible for this and is it possible to do this without js?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Igor Koch, 2017-09-25
@304

ondrop="return false;"
https://jsfiddle.net/whata/xabs04oc/
I don't think it's possible without js.

V
V Sh., 2017-09-25
@JuniorNoobie

It seems to me that this is a simple copy / paste of text implemented by the browser. If such a function is disabled on the site, then it is quite possible that it will not be possible to use it ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question