开发者

Select date from jQuery calendar and display the date of the following saturday in a textbox

I'd like to use the jquery calendar control to popula开发者_如何学Pythonte a date into an asp.net textbox.

When the user selects a date I want the date populated in the textbox to be only Saturday dates. So if the day they select is not a Saturday I want the date of the next Saturday after the date the selected.

How can this be done?


I'm assuming you want to achieve this in jquery. In that case you should handle the onselect event to analyse what date has been selected and change the selection using the setDate method. You may also want to add some server side validation to check that the final date is always a Saturday.

Hope this helps.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜