0

When I try running this code, it says: index.html?descricao=:14 Uncaught TypeError: Cannot set property 'value' of null at index.html?descricao=:14

java code: var inputValue = document.getElementById("reply").value;

html: <textarea id="reply" name="reply" onKeyPress="enterpressalert(event, this)"></textarea>
Wesley Smith
  • 59
  • 1
  • 3
  • please add more details – Ahmed Nabil Jun 15 '21 at 19:36
  • Yeah there's no context here. Show us the entire class where that assignment takes place. Also please describe what frameworks and libraries you are using because `Uncaught TypeError` is not a standard exception. – markspace Jun 15 '21 at 19:40
  • 1
    Are you sure this is Java? Or JavaScript? https://stackoverflow.com/questions/14510071/uncaught-typeerror-undefined-is-not-a-function-java-scripts – markspace Jun 15 '21 at 19:41

0 Answers0