title: Weekday jQuery UI Tabs open on current day
body: <p>I have weekday jQuery UI tabs as follows which I want to open on the current weekday:</p>
  
  <pre><code>&lt;div id="tabs"&gt;
  &lt;ul&gt;
      &lt;li&gt;&lt;a href="monday.php"&gt;Monday&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="tuesday.php"&gt;Tuesday&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="wednesday.php"&gt;Wednesday&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="thursday.php"&gt;Thursday&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="friday.php"&gt;Friday&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="saturday.php"&gt;Saturday&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="sunday.php"&gt;Sunday&lt;/a&gt;&lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p></p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  $(function() {
      $( "#tabs" ).tabs({
          ajaxOptions: {
              error: function( xhr, status, index, anchor ) {
                  $( anchor.hash ).html(
                      "Couldn't load this tab. We'll try to fix this as soon as possible. " +
                      "If this wouldn't be a demo." );
              }
          }
      });
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>I want the tabs to open on the current day of the week, I know something like this works:</p>
  
  <pre><code>.eq((new Date().getDay() || 7) - 1).click();
  </code></pre>
  
  <p>But can't get it to work and would appreciate some help. Also, I would like the tab for the current day to display the word 'Today' instead of the weekday.</p>
  
  <p>I would appreciate some help.</p>
  
  <p>Thanks,</p>
  
  <p>Brendon</p>