0

I'm trying to set blur for a button programmatically with Angular 1.5, I think that ng-blur cannot help me because it's like an event that I do something only when the element is not in focus (blur). I also tried var elem = angular.element(document.querySelector("button")); elem.blur(); but it doesn't work.

Is there any easy way to set blur programmatically?

zb22
  • 3,126
  • 3
  • 19
  • 34

0 Answers0