JSFiddle - React, Tailwind, and code Playground

by maritavindedal

HTML

<!-- MDN Example --> 

<div id="txtboxMultilineLabel">Enter the tags for the article</div>
<div
  role="textbox"
  id="txtBoxInput"
  contenteditable="true"
  aria-multiline="true"
  aria-labelledby="txtboxMultilineLabel"
  aria-readonly="true"></div>

  
<!-- Marita test --> 
  
<div contenteditable="true" aria-readonly="false">1</div>

JavaScript

let el = document.getElementById("txtBoxInput");
console.log(el.ariaReadOnly); // "true"
//el.ariaReadOnly = "false";
//console.log(el.ariaReadOnly); // "false"