jquery datepicker not working with jsp page without html tags
<p>i am trying to use a jquery datepicker in a jsp page with no html.</p>

<p>// all imports using link and script for jquery</p>

<pre><code>&lt;h:form id="formid"&gt;
&lt;t:div id="datepicker" forceid="true" class="demo"&gt;
&lt;f:view&gt;
&lt;h:outputText value="Select date" /&gt;
&lt;h:inputText id="datepicker"/&gt;
&lt;/t:div&gt;
&lt;/f:view&gt;
&lt;/h:form&gt;

&lt;script&gt;
$(function() {
$( "#datepicker" ).datepicker({showon: 'button', 
buttonImageonly: true});
});
&lt;/script&gt;
</code></pre>

<p>The problem is with the id and the script.
Please share a similar full source code.</p>
