Disable pasting a value to a field

Hi!

There is an important field that I want users to enter twice. However, I don’t want them to copy the value of the first field to the second field. Therefore, I want users to be unable to duplicate the first value and paste the second value. Ideally, the first value will become invisible, like a password (just showing dots) when going to the confirmation field, so you can’t see it anymore.

Any ideas on how I would b able to achieve this?

try this: pointer-events: none; when entering is finished, or:

-webkit-user-select: none;
 -moz-user-select: none;
 -ms-user-select: none;
 user-select: none;