views:

20

answers:

1

I'd like to use the jquery calendar control to populate 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?

A: 

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.

madcapnmckay
It doesn't have to be done in jquery. I just like the way their calendar control looks.
Joshua Slocum
Well my point was that you could just do this entirely at the server side and redisplay the change to the user. Doing it client side with jquery is certainly the better choice.
madcapnmckay