Tell me, please, is it possible to somehow prohibit the installation of the cursor in the field? Thank you
<textarea name="text" id="text" onfocus="setFieldName(this.name)" rows="2" required></textarea> Tell me, please, is it possible to somehow prohibit the installation of the cursor in the field? Thank you
<textarea name="text" id="text" onfocus="setFieldName(this.name)" rows="2" required></textarea> css - poiner-events: none + tabIndex = "- 1" . The first will cancel the mouse events on the element, the second will forbid the transition to the element through the tab .
#text { pointer-events: none; } <textarea name="text" id="text" tabIndex="-1" onfocus="setFieldName(this.name)" rows="2" required></textarea> Source: https://ru.stackoverflow.com/questions/769229/
All Articles
onfocus="this.blur();"so what? - Rostyslav Kuzmovych