Hi,
In the datepicker, I have added button in the footer template and when I click on it I want to populate the Todays date on the dateinput and close the datepicker.
Currently I have added OnClientClick event by which I m able to populate Todays date on the dateinput but I m unable to close it.Could any one please let me know how to do it?
Here is the code
<asp:ImageButton ID="IBToday" runat="server" OnClientClick="SelectToday()" ImageUrl="~/Skins/Web20/Calendar/MonthYearTodayBtn.gif" />
function SelectToday()
{
var currentDate = new Date()
var picker = $find("<%= datepicker1.ClientID %>");
picker.set_selectedDate(currentDate);
}
Thanks
Johnsvuk