loading...

re: How to prevent pasting into input fields VIEW POST

FULL DISCUSSION
 

Hi All.,
Instead of taking document.getElementById, directly adding onpaste/oncopy attribute to html input tag is better like shown below =>:

input type='text' oncopy="return false" onpaste="return false" (ngModel)="name"

Code of Conduct Report abuse