I have dropdown values. if i select one dropdown(CandidateFunctions) values, it will populate the another dropdown(PreferredFunctions). This is working good only. but when i select the CandidateFunctions in the second time it is not changing the value..
My code in jquery is
$(document).ready(function () {
$("#CandidateFunctions").change(function () {
if ($("#PreferredFunctions").val() == "" || $("#PreferredFunctions").val() == null) {
$("#PreferredFunctions").val($("#CandidateFunctions").val());
}
});
});
how to populate the values even second time also? please help me...