Datepicker

by wanikirtesh

HTML

<link rel="stylesheet" href="//code.jquery.com/ui/1.11.2/themes/smoothness/jquery-ui.css">
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<script src="//code.jquery.com/ui/1.11.2/jquery-ui.js"></script>
<p>Date: <input readonly type="text" id="datepicker"></p>

JavaScript

$(function() {
$( "#datepicker" ).datepicker();
$("#datepicker").datepicker("setDate", new Date());
});