Hi All i have a quick question about JSON data into href for AJAX

I have JSON coming into AJAX example data[i].listingid
How do i put that into a href inside the ajax? 

Below are my codes, it will explain the situation more clearly. 

Thanks for your time

```
<script>
$.ajax({
     type: "GET",
     url: "listing.php",

     dataType: 'json',
     success: function (data) {
         for (var i = 0; i < data.length; i++) {
             console.log(data)

             var listingid = data[i].listingid;
             var myOtherUrl =
                 "SpecificListing.html?Listingid=" + encodeURIComponent(listingid);

             var html1 = "<div class=two> Listing Address : " + data[i].address + "<a href=myOtherurl>" +
                 data[i].listingid + "Click to view the details" + "</div>" +
                 "</a>"
             $('#display12').append(html1);
         }
     }

 });
</script>

```