0

It could be done by,

 angular.element($("#Id").focus());

Is there any way to set them using ng-model attribute.

Gowtham Alan
  • 234
  • 3
  • 15
  • You can use `autofocus` attribute to the input element – phani indra Oct 23 '17 at 12:43
  • You can create a directive for this as stated in this [SO](https://stackoverflow.com/questions/14833326/how-to-set-focus-on-input-field) – Jax Oct 23 '17 at 12:59
  • Possible duplicate of [How to set focus on input field?](https://stackoverflow.com/questions/14833326/how-to-set-focus-on-input-field) – Jax Oct 23 '17 at 12:59
  • I have multiple Textboxes..when condition changing dynamically while set focus to those controls..Textboxes are statics..all having Unique ng-model names.. – Gowtham Alan Oct 23 '17 at 13:08

0 Answers0