title: Select the week number of the date picked using jquery datepicker
body: <p>I have the following code for selecting a date which I then want to convert to a week number.</p>
  
  <pre><code>    $(".calendar").datepicker({
          showWeek: true,
          onSelect: function(dateText, inst) {
              dateFormat: "'Week Number '" + $.datepicker.iso8601Week(new Date(dateText)),
              alert($.datepicker.iso8601Week(new Date(dateText)))
          }
      });
  </code></pre>
  
  <p>The alert shows the correct week number, but the date does not reformat at all.</p>
  
  <p>I can't move the dateFormat function outside of the onSelect because this causes nothing to happen.</p>
  
  <p>What I would like to achieve is the text field to say something like "Week Number 13"</p>
  
  <p>Any ideas?</p>
  
  <p><a href="http://jsfiddle.net/ENG66/" rel="noreferrer">http://jsfiddle.net/ENG66/</a></p>