simple dialog box with datepicker
<p>I have a jquery simple dialog box which works great but one of the text fields I have within the simple dialog box cannot see the datepicker plugin?</p>

<p>Thanks for any help!</p>

<pre><code> &lt;div style="display:none;" id="simpleDialog1"&gt;

 &lt;form&gt;
&lt;fieldset&gt;
    &lt;legend&gt;Legend Name&lt;/legend&gt;
    &lt;label for="DateCreated"&gt;Date:&lt;/label&gt;
    &lt;input type="text" name="DateCreated" class="datepicker" /&gt;
        &lt;label for="Status"&gt;Status:&lt;/label&gt;
    &lt;input type="text" name="Status" /&gt;
        &lt;label for="RequestedBy"&gt;Requested By:&lt;/label&gt;
    &lt;input type="text" name="name" /&gt;
        &lt;label for="AssignedTo"&gt;Assigned To:&lt;/label&gt;
    &lt;input type="text" name="AssignedTo" /&gt;
        &lt;label for="Description"&gt;Description&lt;/label&gt;
    &lt;input type="text" name="Description" /&gt;
    &lt;br&gt;
    &lt;input type="submit" name="submit" /&gt;
&lt;/fieldset&gt;
 &lt;/form&gt;
 &lt;/div&gt;



$(document).ready(function () {


$('#sdHc1').simpleDialog({
opacity: 0.3,
duration: 500,
title: 'Add Ticket',
open: function (event) {
  console.log('open!');
},
close: function (event, target) {
  console.log('close!');
}
});



$('.datepicker').datepicker();


});
</code></pre>

<p>I tried using the datepicker outwith the dialog box and it works perfectly?</p>

<p>Thanks guys!</p>
