I need to limit the jquery ui date picker to only have future Tuesdays and Thursdays as selectable days.
How can I accomplish this?
It's all in the documentation. The function beforeShowDay will do what you want.
http://api.jqueryui.com/datepicker/#option-beforeShowDay
My use was different days but I ended up with beforeShowDay calling my limitdays function
function limitDays(date){
var day = date.getDay();
// Only make Mon, Tues, and Thurs selectable
if(day == 1 || day == 2 || day == 4){
return [true, ''];
}else{
return [false, ''];
}
}