title: Can I add text.toLowerCase(); to an already functioning script?
body: <p>I'm using this script:</p>
  
  <pre><code>    function validateform() {
    var textarea = document.getElementById('textareabox');
    var word = '&lt;?php echo $answerbutton_of_this_page ?&gt;';
  
    var textValue = textarea.value;
    if (textValue.indexOf(word) != -1) {
      document.getElementById("correcto").innerHTML = '&lt;?php echo $outputvali_of_this_page; ?&gt;';
      return true;
    } else {
      document.getElementById("incorrecto").innerHTML = 'Incorrect!';
    }
  }
  </code></pre>
  
  <p>I'd like to add: </p>
  
  <pre><code>document.getElementById("textareabox").value = text.toLowerCase();
  </code></pre>
  
  <p>But I cannot get it to work. Where or how should I add this? 
  I want the script to first lowercase the input and then see if the user has the correct / incorrect answer.</p>