Is it possible to clone all select options without an empty value when the change event occurs?
Here is the code I have written:
$(function() {
$("#ddlSecurityQuestions1").change(function() {
var index = $(this).val();
$('#ddlSecurityQuestions2').empty();
$('#ddlSecurityQuestions1 option').clone().appendTo('#ddlSecurityQuestions2');
var otherDropDown=document.getElementById('ddlSecurityQuestions2');
otherDropDown.options.remove(index);
});
});