jQuery JavaScript
<p>How can I write this code:</p>

<pre><code>$(function()
{ 
$('#datetime').datepicker({duration: '',showTime: true,constrainInput: false});
});
</code></pre>

<p>in JavaScript <code>onclick</code>?</p>
