I want a WP page to scroll to certain class according to day of the week. On each day I want the users browsers to scroll to the current day and on Sunday to go to Monday.
HTML added to a WordPress page
<h2>Activities</h2>
<ul>
<li><span class="monday">Monday</span>xyz</li>
<li><span class="tuesday">Tuesday</span>xyz</li>
<li><span class="wednesday">Wednesday</span>xyz</li>
<li><span class="thursday">Thursday</span>xyz</li>
<li><span class="friday">Friday</span>xyz</li>
<li><span class="saturday">Saturday</span>xyz</li>
</ul>
I know I need the getDay JS to determine the current day, but I have a hard time getting the page to scroll. Any help would be greatly appreciated. Thanks in advance! vik3d