title: Unable to replace form input value with Javascipt and/or jQuery
body: <p>I know it seems basic, but hear me out, I've been trying to figure it out for a good chunk of the day and something just isn't working.</p>
  
  <p>I'm trying to replace the value of a hidden form field with the visitors IP address. This is the field in question: </p>
  
  <pre><code>    &lt;label class="previewLabel" for="awf_field-106493013"&gt;ipaddress:&lt;/label&gt;
      &lt;div class="af-textWrap"&gt;&lt;input type="text" id="awf_field-106493013" class="text" name="custom ipaddress" value=""  onfocus=" if (this.value == '') { this.value = ''; }" onblur="if (this.value == '') { this.value='';} " tabindex="503" /&gt;&lt;/div&gt;
  </code></pre>
  
  <p>And this is the code I have on my page currently:</p>
  
  <pre><code>    &lt;script type="text/javascript"&gt;
    function getUrlParam(name, url) {
              if (!url) url = window.location.href;
              name = name.replace(/[\[\]]/g, '\\$&amp;');
              var regex = new RegExp('[?&amp;]' + name + '(=([^&amp;#]*)|&amp;|#|$)'),
                  results = regex.exec(url);
              if (!results) return null;
              if (!results[2]) return '';
              return decodeURIComponent(results[2].replace(/\+/g, ' '));
          }
  
  
  
          var tid = getUrlParam("adid");
              var date = Date(Date.now());
          jQuery(document).ready(function () {
             (function (){  
               jQuery.ajax({
                     async: false,
                     type: 'GET',
                     url: 'https://api.ipify.org/?format=json',
                     success: function(data) {
                          //callback
                       console.log(data.ip) //This works properly;
                              jQuery('#awf_field-106493013').val(data.ip); //This does not work
                     }
                });
                   }());
  
  
             jQuery('#awf_field-106493014').val(date.toString()); //This works properly
            if(tid != null){
             jQuery('#awf_field-106493015').val(tid.toString()); //This works properly
            }else{
              jQuery('#awf_field-106493015').val("nulltid"); //This works properly
            }
  
          });
  
  
  &lt;/script&gt;
  </code></pre>
  
  <p>I've also tried to make the call and replacement with <code>jQuery.get</code> and the replacement with <code>document.getElementById</code>. All other fields are replaced except for this one IP field and, as the comment in the code says, the IP is even properly printed into the console before it's dropped while trying to be replaced. </p>
  
  <p>I've also tried changing <code>async</code> from <code>false</code> to <code>true</code>, but this also did not work. </p>
  
  <p>I have no idea why this is behaving how it is and would like some assistance. </p>
  
  <p>Thanks!</p>