Using the folowing code in the OnLoad function for the body of my page I get a null for my datepicker object:
var datepicker = $find("<%= DatePicker.ClientID %>");
datepicker.get_dateInput().disable();
I am trying to have a datepicker object enabled or disabled depending on the value of another field in my page when the screen is loaded. Is there a better way to do this? I would prefer to have it on the client side if at all possible.
var datepicker = $find("<%= DatePicker.ClientID %>");
datepicker.get_dateInput().disable();
I am trying to have a datepicker object enabled or disabled depending on the value of another field in my page when the screen is loaded. Is there a better way to do this? I would prefer to have it on the client side if at all possible.