Q:

Populate items into SELECT with Jquery

I'm having trouble populating a SELECT with jquery, when the user writes the zipcode or part of it, it searches the database and returns this:
{"success":1,"id":"50","street":"Central One"},{"success":1,"id":"60","street":"Central Two"}

One success for each street it finds. For a single street and using a text input I'm using this
UPDATE 1 - FULL CODE
$(document).ready( function() {
 $('#zip').blur(function(){
       $.ajax({
            url : '../../controller/zip.php', 
            type : 'POST', 
            data: 'zip=' + $('#zip').val(), 
            dataType: 'json', 
            success: function(data){
                if(data.sucesso == 1){
                    $('#id').val(data.id);
                    $('#street').val(data.street);
                }
            }
       });   
return false;    
})
}); 

How can I change this so I can populate a select box.
Thanks

A:

I would not encourage to do so; you're better off using a html-templating engine like mustache or handlebars.
Doing this kind of stuff in plain JS (string concatenation) is gross. It pollutes your sourcecode.
Anyways, this would do the trick to generate the necessary HTML:
function generateHTML(data){
    return data.reduce(function(o,n){
        return o+"<option value='"+n.id+"'>"+n.street+"</option>";
    },"");
}

Here is the Fiddle to play with. If you need to filter for success, you could add a filter() 
function generateHTML(data){
    return data.filter(function(x){
        return !!x.success;
    }).reduce(function(o,n){
        return o+"<option value='"+n.id+"'>"+n.street+"</option>";
    },"");
}

You could easily use $("#selectBoxId").html(generateHTML(data)) to insert it to the DOM.
To fit it into your codebase, you should add it in the success handler:
success: function(data){
    function generateHTML(data){
        return data.reduce(function(o,n){
            return o+"<option value='"+n.id+"'>"+n.street+"</option>";
        },"");
    }
    $("select").html(generateHTML(data))
}

For the inner workings of Array.prototype.reduce() take a look at MDN and for Array.prototype.filter()

