Home >Web Front-end >JS Tutorial >Display selected text in textarea in Mozilla_javascript skills
In the past, createRange was used to determine the text selected in textarea. Although Mozilla also supports this attribute, it does not work when placed in textarea.
Later I found out that there are other ways to solve Mozilla’s problem.