//return JSON Object $.getJSON(selectedInstrumentAjaxCallUrl, {instrument:ticker}, function(json) { //build options html var optionsHtml = ''; for (var i = 0; i < json.length; i++) { optionsHtml += ''; } $("#select1").html(optionsHtml); $("span.ajax-load").remove(); $("#select1").removeAttr("disabled"); $('#select1 option:first').attr('selected', 'selected'); }) })