So if the Day is between Monday - Friday and the Time is between 9am - 5:30pm,

then it will show div = class.open

if before or after that time, it will show div = class.closed

I have the following code that works to show the .open div when open, Monday-Friday 9am to 5pm. And it will show the .closed div from 0am to 9am. But I need it to show the closed div anytime it is outside of Monday-Friday 9am-5pm.

So I have 2 questions:

How do I have the .closed div show whenever it is not Monday-Friday 9am to 5pm?

It'll work, but it's clunky. Also FYI it'll never hit the second else if hour=='17' because your opening statement is checking for it being < 17
– Jamie BarkerMar 3 '15 at 16:09

1

Thanks for catching that, Jamie -- too many interruptions over here. Only thought to include this example because the OP looks like he might understand it better. I remember only too well being in his shoes a year or so ago myself.
– gibberishMar 3 '15 at 16:54

Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).