jeudi 22 mars 2018

How to set focus to a dynamically generated input field (textbox) in ember

I have two textboxes which are dynamically generated, below is the html of the textboxes

enter image description here

two text boxes

How do i focus any 1 textbox ?

i tried the below code

    $('.answer_1').focus();

but that dosent seem to be work, is there any other way where i can set focus to the textbox programmatically?




Aucun commentaire:

Enregistrer un commentaire