autocomplete City/place

Issue #63 resolved
Alex M Pro created an issue

(index):1213 Uncaught TypeError: Cannot read property 'length' of null at HTMLInputElement.<anonymous> ((index):1213)

  for (i = 0; i < arr.length; i++) {

???????

Comments (3)

  1. Alex M Pro reporter
    var jsonCP = (function () {
        var jsonCP = null;
        $.ajax({
            'async': false,
            'global': true,
            'url': '../core/cp-json.php',
            'dataType': "json",
            'success': function (data) {
                jsonCP = data;
            }
        });
        return jsonCP;
    })();
    
    • 'async': true,*

    ON

    'async': false,

  2. Log in to comment