Adding a class based on current day of the week
问题 I've got a bunch of tabbed divs on a page for each day of the week, which are being shown/hidden with jQuery when clicked. The class "first", added manually to whatever tab I want, tells the page which div to show when the user first lands there. At the moment it is set to the Monday div. How would I go about setting this up so that jQuery can add the class dynamically to the actual current day's div instead of hard coding it? Divs are set up like this (with Monday being currently selected):