2

I am using a CRUD inline edit/add using AngularJS. I would like to know how to auto-focus to the textbox on Edit/New.

The textboxes are dynamically created within the modal window.

Deepak Vasudevan
  • 360
  • 1
  • 3
  • 16
  • Possible duplicate of [How to set focus on input field?](http://stackoverflow.com/questions/14833326/how-to-set-focus-on-input-field) – tpsilva Sep 06 '16 at 14:02

2 Answers2

1

Writing an attribute directive would be best idea. Here is the link you can simply use this.

Indra Uprade
  • 773
  • 5
  • 12
1

Write your custom directive or you can use https://github.com/Aks1357/angular-auto-focus, it has bower option

Aks1357
  • 1,062
  • 1
  • 9
  • 19