I am trying to check for duplicates existing at Entry and alert user with a message inline that the number exists.

```
$(document).ready(function(){
    $("#con1").blur(function(){
        $.ajax({
        datatype: 'text',
        url: "check-dup-num.php",
        data : {
            con1: $("#con1").val()
            },
        context: document.body,
        success: function(result){
            console.log (result);
        }
    });
    });
});

```

This returns the following in console log.

```
{"numcount":"3"}

```

What I need is to populate div id=#con1 with a message : 

```
<p> 3 duplicates found </p> 

```

if the numcount is not equal to 0.

I tried adding 

```
    var counter = $.parseJSON('result');
    var container = $('<p class="con1error"></p>');
    for(var i=0; i < counter.items.length; i++) {
     container.append('<p> Found ' + counter.items[i].numcount + ' duplicates. </h5>');
    }           
    $('#con1').append(container);

```

But to no avail.

Any help is much appreciated.