While working on an application I had a need to modify the way dates where selected from the jQuery UI calendar control. I needed to only allow the end user the capability of selecting a Monday. After some searching of the internet I found the following solution.
I can’t remember where exactly I got it although I did make some modifications to it. The code I actually used is above.