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.
精彩评论