Having an issue where my JS is not updating 4 DIV containers I have specified in my HTML document. I have attempted to diagnose it by double checking the JSON is correct format, which I verified. I also double checked the API docs to ensure I was following the correct syntax. Not sure what the issue is.
JQUERY version I am using is v2.1.4, attached is the code snippet.
$(document).ready(function() {
  var ErrorVal = 'Error'
  $.getJSON('http://acweb.ddns.net',
    function(feeds) {
      //alert(feeds);
      var feedHTML = feeds.length;
      //var displayCounter = 1;
      var AllComplaintsCounter = 0;
      var PhoneComplaintsCounter = 0;
      var TVComplaintsCounter = 0;
      var InternetComplaintsCounter = 0;
      //for (var i=0; i<feeds.length; i++) {}
      $('#NewComplaints-Number').html(feedHTML);
      $('#PhoneComplaints-Number').html(feedHTML);
      $('#TVComplaints-Number').html(feedHTML);
      $('#NetworkComplaints-Number').html(feedHTML);
    }).fail(function(jqXHR, textStatus, errorThrown) {
    var error = "";
    if (jqXHR.status === 0) {
      error = 'Connection problem. Check file path and www vs non-www in getJSON request';
    } else if (jqXHR.status == 404) {
      error = 'Requested page not found. [404]';
    } else if (jqXHR.status == 500) {
      error = 'Internal Server Error [500].';
    } else if (exception === 'parsererror') {
      error = 'Requested JSON parse failed.';
    } else if (exception === 'timeout') {
      error = 'Time out error.';
    } else if (exception === 'abort') {
      error = 'Ajax request aborted.';
    } else {
      error = 'Uncaught Error.\n' + jqXHR.responseText;
    }
    $('#NewComplaints-Number').html(ErrorVal);
    $('#PhoneComplaints-Number').html(ErrorVal);
    $('#TVComplaints-Number').html(ErrorVal);
    $('#NetworkComplaints-Number').html(ErrorVal);
  });
});
 
    