Ask Question Forum:
Model Library:2025-02-08:A.I. model is online auto reply
C
O
M
P
U
T
E
R
2
8
Show
#
ASK
RECENT
←
- Underline
- Bold
- Italic
- Indent
- Step
- Bullet
- Quote
- Cut
- Copy
- Paste
- Table
- Spelling
- Find & Replace
- Undo
- Redo
- Link
- Attach
- Clear
- Code
Below area will not be traslated by Google,you can input code or other languages
Hint:If find spelling error, You need to correct it,1 by 1 or ignore it (code area won't be checked).
X-position of the mouse cursor
Y-position of the mouse cursor
Y-position of the mouse cursor
Testcursor
caretPos
Attachment:===
Asked by Norton Alex
at 2024-08-28 07:01:55
Point:500 Replies:1 POST_ID:829245USER_ID:12423
Topic:
javascript
Normally, we will set div to be edit as this
<div id='123' contenteditable='true'>,/div>, something like that;
I tried to change it by javascript, it doesn't work
- var node=document.getElementById('123');
- node.contenteditable='false' //it is not working to disable the function
Accepted Solution
Expert: D Ft replied at 2024-08-28 07:07:22
500 points Excellent
some attributes, u may not be able to set it in your way, the best, u use this
node.setAttribute('contenteditable',false);