$(result.regions).each(function(index, Element) { options += '<option value="' + $(this).attr('title') + '">' + $(result.regions2).eq( index ).attr('title2') + '</option>'; })