hi
i am developing a site in asp.net 1.0 for validation i have created a js function
where i am checking all controls for null
my text boxes are validated with that function but not combos.
here is the code i used to validate combos
if(document.Form1.cboCity.selectedindex == 0)
{
document.Form1.cboCity.focus();
alert("Please Select Your Current Location.");
return false;
}
This is not worked then i tryed this
if(document.Form1.cboCity.value == 0)
{
document.Form1.cboCity.focus();
alert("Please Select Your Current Location.");
return false;
}
but nothing is done. also no error.
plz help.