Does anyone know how I can delete the placeholder value when I click on the field using AngularJS only?
Example: When clicking, automatically add the word name.
<input type="text" ng-model="inputText" placeholder="Nome" />
Does anyone know how I can delete the placeholder value when I click on the field using AngularJS only?
Example: When clicking, automatically add the word name.
<input type="text" ng-model="inputText" placeholder="Nome" />
As follows:
<input type="text" ng-model="inputText" onfocus="this.placeholder = ''" onblur="this.placeholder = 'Nome'" placeholder="Nome" />
With