How can I trigger the focus() event for the textarea element using code? To happen the same thing as when you click on the textarea field with the mouse. That is, the selection (textarea: focus style), well, when you press the keys, the text is entered into the field.
Tried .focus() , .select() , and other methods, but they don't work.