Anytime calendar - using button
<p>I've tried contacting the author first, but no reply as yet.</p>

<p>I'm using the Anytime calendar (http://www.ama3.com/anytime) for a website, and I want to make it so that the user can't edit the field the picker is attached to. The picker won't work at all if the textbox is disabled, so I'm using the button from Andrew M's examples. Unfortunately, that doesn't come with any instructions for setting the properties of a picker created using a button:</p>

<pre><code>&lt;script&gt;
$('#ButtonCreationDemoButton').click(
  function(e) {
    $('#ButtonCreationDemoInput').AnyTime_noPicker().AnyTime_picker().focus();
    e.preventDefault();
  } );
&lt;/script&gt;
</code></pre>

<p>Normally you create a picker with this, eg</p>

<pre><code>&lt;script&gt;
AnyTime.picker( "dt1",
    { earliest: eDate, latest: lDate, askSecond: 0, firstDOW: 1 } );
&lt;/script&gt;
</code></pre>

<p>How to set the properties of the picker in the first script block? Note, if I include both bits of code in the script block, clicking the button sends me to the action form instead of opening the calendar</p>

<p>If the author could help me with this it would be appreciated</p>

<p>A</p>
