jquery datepicker onselect not working
<p>jquery function:</p>

<pre><code>$(function() {
    $("#iDate").datepicker({
        dateFormat: 'dd MM yy',
        beforeShowDay: unavailable
    onSelect: function (dateText, inst) {
            $('#frmDate').submit();
        }

    });

});
</code></pre>

<p>html:</p>

<pre><code>        &lt;form id="frmDate" method="post" action="&lt;?php echo $base_url;?&gt;index.php"&gt;
&lt;input id="iDate" name="iDate" class='input' type="text" /&gt;
</code></pre>

<p></p>

<p>it doesn't seem to be firing, don't understand why it is not working.</p>

<p>cheers.</p>
