Wednesday, 21 February 2018

Disable cut copy paste options in textbox using angularjs

in Angularjs has predefined ng attribute, by using this we can achieve disabling Cut Copy Paste options in Textbox or text area.


<input type="text" class="form-control" ng-cut="$event.preventDefault()" ng-copy="$event.preventDefault()" ng-paste="$event.preventDefault()" ng-model="modelvalues" />

No comments:

Post a Comment