开发者

AjaxToolkit Calendar Extender Programmatic change in value not reflected

开发者 https://www.devze.com 2023-01-27 23:06 出处:网络
There is a calendar image near to the text box for dropdown calendar. When I change the date value in text box by

There is a calendar image near to the text box for dropdown calendar. When I change the date value in text box by

$("#calendarTextBox").val("11/22/2004");

and then if user clicks on the image, the drop down calendar contains the old date value instead of the one set by the javascript.

Any clues will be helpful.

Calendar Demonstrati开发者_JS百科on for trying out.


Got the solution.

$find('<%CalenderExtenderContol.ClientID%>').set_selectedDate(new Date('11/22/2004'));
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号