title: Enter an input value with greasemonkey
body: <p>I have some input values contained within a bunch of divs and a form.  I have a limited knowledge of js and would like to use greasemonkey to set the values when the page loads.</p>
  
  <p>The following shows the order of divs and forms to get to the value.</p>
  
  <pre><code>&lt;div data-role="page" id="finalTest"&gt;                    
    &lt;div data-role="content"&gt;
      &lt;form class="cmxform" id="ftForm"&gt;
        &lt;div id="finalTestForOtherDiv" &gt;
          &lt;div data-role="fieldcontain" class="special-spacing"&gt;
                  &lt;div class="input-div"&gt;
                      &lt;label id="finalTestBeforeAcTgrLabel" for="finalTestBeforeAcTg" data-insight="true" 
                          class="mandatory" data-default="mandatory"&gt;&lt;img class="label-image" alt="" src="../Images/icon-alert.png" /&gt;AC V (T/G):&lt;/label&gt;
                      &lt;input type="text" id="finalTestBeforeAcTg" name="finalTestBeforeAcTg" value="" style="width:100px; display:inline-block;" 
                          data-bind="binder.BeforeAcTg"  data-bind-action-when-hidden="Ignore" /&gt;
                      &lt;span class="ui-content" style="padding-left:7px;"&gt;V&lt;/span&gt;
                      &lt;div class="error-message"&gt;&lt;ul&gt;&lt;/ul&gt;&lt;/div&gt;
  
                  &lt;/div&gt;
  </code></pre>
  
  <p>Here is the script I've tried using but does nothing.</p>
  
  <pre><code>// ==UserScript==
  // @name    Final Test
  // @description Final test results
  // @include https://techaccess.ad.qintra.com/WorkJobs/WorkJobs.aspx#finalTest
  // ==/UserScript==
  
  document.getElementById("finalTestBeforeAcTg").value = "0.00";
  </code></pre>