const defaultOption = $('#ldF13').val()
$('#ldF13').replaceWith('<select name="aemail">')
const options = ['Item 1', 'Item 2', 'Item 3']
for (let i = 0; i < options.length; i++) {
let selected = defaultOption === options[i] ? 'selected' : ' '
$('select[name=aemail]').append('<option value="' + options[i] + '" ' + selected + '>' + options[i] + '</option>')
}