9 Replies Latest reply on Mar 28, 2016 11:46 AM by adumi

    How to allow user to set focus on each and any of the multiple text areas on stage?

    adumi Level 1

      I have multiple text areas on stage and for the purpose of scrolling them by wheel I would like the user to focus on the one of his choice, either by mouse or by tab key.

      The best I could find is the setAttribute method, coupled with the value of tabindex, wherein the number 1 represents the first and highest element in the hierarchy.

      Not sure it`s the right way to go about it and if it is, I am probably doing something wrong, as usual. I tried:

      this.my_textArea.setAttribute("tabindex","1");
      

      and I am getting in return:

      Uncaught TypeError: this.my_textArea.setAttribute is not a function