dimanche 28 février 2016

ng-reapet and textarea focused

I have ng reapet and inside the loop i have:

<button class="btn btn-default" id="ans_button" data-ng-click="textareashow = !textareashow">Answer</button>
<textarea  cols="65" rows="7" data-ng-model="texta" autofocus="autofocus" data-ng-focus="focus()" data-ng-blur="blur()"></textarea>

I want that if the user click on Anser button the testarea will show. Its work, But only once, if i click on it and close, and after that click on another answer button - the textarea is not in focus.




Aucun commentaire:

Enregistrer un commentaire