Hi all,
I need to find out what is the selected value of my dropdown list, can someone help me?
if(document.getElementById('Category').SelectedIndex.Value == '0'){
document.getElementById('Categoryjs').innerHTML = "<span class=\"ClientSideBigred\">This field must not be left blank.</span>";
document.all['Categoryjs'].style.visibility = "visible";
}else{
document.getElementById('Categoryjs').innerHTML = '';
document.all['Categoryjs'].style.display = "none";
}
Thanks,
Mike
I need to find out what is the selected value of my dropdown list, can someone help me?
if(document.getElementById('Category').SelectedIndex.Value == '0'){
document.getElementById('Categoryjs').innerHTML = "<span class=\"ClientSideBigred\">This field must not be left blank.</span>";
document.all['Categoryjs'].style.visibility = "visible";
}else{
document.getElementById('Categoryjs').innerHTML = '';
document.all['Categoryjs'].style.display = "none";
}
Thanks,
Mike