title: jquery datepicker automatically opens (but shouldn't)
body: <p>I have an app that is using JQuery UI. This app needs to open a dialog and show two date pickers. Currently, I have the dialog working. I also have two date pickers. My problem is: a) the date pickers default date is not showing and b) when I open the dialog, the "from" date picker is automatically opened.  Here is my code that initializes the dialog and the date pickers:</p>
  
  <pre><code>&lt;div id="myDialog" title="Other Date Range" style="display:none;"&gt;
      &lt;table border="0"&gt;
          &lt;tr&gt;
              &lt;td&gt;From&lt;/td&gt;
              &lt;td&gt;&lt;/td&gt;
              &lt;td&gt;To&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;&lt;input id="fromOtherDateTextBox" style="width:140px;" /&gt;&lt;/td&gt;
              &lt;td&gt;&amp;nbsp;-&amp;nbsp;&lt;/td&gt;
              &lt;td&gt;&lt;input id="toOtherDateTextBox" style="width:140px;" /&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;mm/dd/yyyy&lt;/td&gt;
              &lt;td&gt;&lt;/td&gt;
              &lt;td&gt;mm/dd/yyyy&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/table&gt;
  &lt;/div&gt;
  
  $(document).ready(function () {
      $("#fromOtherDateTextBox").datepicker({        
          defaultDate: "-1d",
          maxDate: 0,
          minDate: new Date(2000, 1, 1)
      });   
  
      $("#toOtherDateTextBox").datepicker({        
          defaultDate: "0d",
          maxDate: 0,
          minDate: new Date(2000, 1, 1)
      });   
  
      $("#myDialog").dialog({
          autoOpen: false, modal: true,
          show: "fade", hide: "fade",
          height:220, width:350,
          buttons: {
              'Cancel': function () { $(this).dialog('close'); },
              'View': useOtherDate_Click
          }
      });    
  });
  </code></pre>
  
  <p>Here is the code I use to open the dialog:</p>
  
  <pre><code>$("#myDialog").dialog("open");
  </code></pre>
  
  <p>What am I doing wrong?</p>
  
  <p>Thank you!</p>