title: Uncaught TypeError: Cannot set property 'disabled' of null
body: <p>I used this line in js file </p>
  
  <pre><code>document.getElementById("orderbutton").disabled = true;
  </code></pre>
  
  <p>I used a button with id "orderbutton" on page example.php
  and in other page example1.php, I am not using the button with "orderbutton"</p>
  
  <p>When opening the page example1.php in the console I have this error </p>
  
  <blockquote>
    <p>Uncaught TypeError: Cannot set property 'disabled' of null</p>
  </blockquote>
  
  <p>any help, please
  example1.php file</p>