I've got a page which contains a dozen tabs, each of which has their own ViewComponent. Each ViewComponent has many datepicker controls.
I have a situation where I need to disable almost all of them, except on one tab, based on the user's role.
What are some ways to do this in one fell swoop, rather than setting .Enable(false) on each individual datepicker in markup?
Bonus: there are some regular old <input type="text">'s on these forms as well. Those are easy enough to disable with JQuery, but JQuery doesn't work on the datepickers, because while the text portion is read-only, the popup button displaying a calendar still works and can change the value of the text box.
Thanks so much for any ideas!