title: JSON jQuery Refresh
body: <p>I want to reload data via javascript/jQuery into html div id elements every second. The initial load (ready-state) works perfectly, but in the refresh (via setInterval()) doesn't. I'm just a hobbyist programmer and would be very thankful for your help.</p>
  <pre><code>$(document).ready(function() {
    $.getJSON('db/blackmagic/webscripts/jquery_gpio.php', function(json_php) {
        document.getElementById(&quot;jq_zeitstempel&quot;).innerHTML = json_php.jq_zeitstempel;
        document.getElementById(&quot;jq_bcm05&quot;).innerHTML = json_php.jq_bcm05;
        document.getElementById(&quot;jq_bcm06&quot;).innerHTML = json_php.jq_bcm06;
  
        setInterval(function() {
            $.getJSON('db/blackmagic/webscripts/jquery_gpio.php', function(json_php_refresh) {
                document.getElementById(&quot;jq_zeitstempel&quot;).innerHTML = json_php_refresh.jq_zeitstempel;
                document.getElementById(&quot;jq_bcm05&quot;).innerHTML = json_php_refresh.jq_bcm05;
                document.getElementById(&quot;jq_bcm06&quot;).innerHTML = json_php_refresh.jq_bcm06;
              }
  
  
            }, 1000);
  
        });
    });
  </code></pre>