Text box value doesn't get post after selecting a date from Jquery datepicker
<p>I create a textbox and add a Jquery UI datepicker.But when I select and click the button.the textbox doesnt get post and show an error message like(Notice: Undefined index: date_text in C:....................\file.php on line 57 ).But when I enter a date using keyboard without having a datepicker it will submit well.Please help me.How can I do this having datepicker</p>

<p>this is my jquery code</p>

<pre><code>&lt;script&gt;
    $(function() {
        $( "#datepicker" ).datepicker();

            $( "#datepicker" ).datepicker( "option", "dateFormat", "yy-mm-dd" );

    });
    &lt;/script&gt;
</code></pre>

<p>this is my textfield</p>

<pre><code>&lt;div id="datetobe"&gt;Date to be dispose
               &lt;label for="date_to_dispose"&gt; &lt;input name="datepicker" type="text" id="datepicker"   class="textfield" /&gt;&lt;/label&gt;
              &lt;/div&gt;  
</code></pre>
