title: GXA_PPD might not have a value
body: <p>I am making a posts per day element, but I have a problem.
  the issue is i don't know how functions in HTML work, I just started HTML yesterday
  I can tell by that I don't get &quot;yes&quot; on my website, I only get 11</p>
  <p>script:</p>
  
  
  <pre><code>&lt;script&gt;
      function showRandomNumber(){
          document.getElementById(&quot;random_maximum&quot;).innerHTML = rando(1, 10);
      }
      functon check_exceed_maximum_PPD(){
          var GXA_PPD = document.getElementById(&quot;GXA_PPD&quot;);
          var random_maximum = document.getElementById(&quot;random_maximum&quot;);
  
          if(GXA_PPD.value &gt;= random_maximum){
              document.getElementById(&quot;random_maximum&quot;).innerHTML = &quot;yes&quot;;
          }
      }
  &lt;/script&gt;
  &lt;head&gt;
      &lt;meta charset=&quot;utf-8&quot;&gt;
      &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1&quot;&gt;
  &lt;/head&gt;
  &lt;body onload=&quot;showRandomNumber();&quot; onload=&quot;check_exceed_maximum_PPD();&quot;&gt;
      &lt;h1 id=&quot;random_maximum&quot; id=&quot;GXA_PPD&quot;&gt;11&lt;h1&gt;
  &lt;/body&gt;
  </code></pre>