I've 1 textbox, its for getting DateTime value,First the user has to fill the DateTime textbox before selecting the vehicle dropdown. If that textbox is blank i ve to popup a message.. I am trying to validate but its not responding.. the code is,
function Validate_VehicleDropdown()
{
var RequestDateTime=$get('<%=ui_txtRequestDateTime.ClientID %>')
if(RequestDateTime.value=="")
{
alert("Please Enter RequestDateTime Before Selecting Vehicle");
RequestDateTime.focus();
return false;
}
I called that function inside Dropdown control as
onblur="javascript:return Validate_VehicleDropdown();
What mistake i ve done here?? give some idea?