I have JQuery tabs with Day 1, Day 2, Day 3 content. I would like to enable Day 2, Day 3, etc, tabs on their specific date because the event hasn’t happened yet hence I don’t want users to click the tabs.
Here’s the function I use right now to disable the tabs.
$('#tabs').tabs({disabled:[2,3,4]});
Can I bind the above function with dates? Something like if the date is July 25, to enable the Day 2 tab automatically?
Thanks.
1 Answer