I have two textboxes, and I want to prevent user from copying the value from the first (email) textbox and pasting it in the second (confirmEmail) textbox.
Email: <input type="textbox" id="email"><br/>
Confirm Email: <input type="textbox" id="confirmEmail">
I have two solution in my mind:
- Prevent copy action from the email textbox, or
- Prevent paste action from the confirmEmail textbox.
Any idea about how to do it?
http://jsfiddle.net/S22ew/
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…