I have tried a bunch of options and I am just not sure what I am doing wrong. I have a dropdown called Accreditation which is set-up as a multi-select. If the user chooses any combination of options, if it includes the "Other" option, I want to then show the Other field. Hopefully, someone can tell me what I am missing.
$(document).ready(function () {
$("#accreditation").change(onAccreditation);
onAccreditation();
});
function onAccreditation() {
var varSelectedValues = $("#acceditation").val();
if (varSelectedValues && varSelectedValues.indexOf('Other') ! == -1) {
$('#accreditationother').parent().parent().show();
} else {
$('#accreditationother').parent().parent().hide();
}
};
Thanks for any help!
Heidi