+ 1

Why not working?

https://code.sololearn.com/WRHh8EJdKB13/?ref=app when i click the button, only the text in the textarea t2 is being selected. I want the text of both the textboxes be selected.

19th Mar 2019, 2:43 PM
B.D
B.D - avatar
3 Answers
+ 6
I don't think so that you can select two things at once. If you try to do so then the last element with `.select()` on it will be selected.
19th Mar 2019, 5:24 PM
VEDANG
VEDANG - avatar
+ 2
I would say this is not possible, you can only select one textarea at a time, similar to focus() method.
19th Mar 2019, 5:36 PM
Jorge
Jorge - avatar
+ 1
thanks
20th Mar 2019, 6:00 PM
B.D
B.D - avatar