public
Created

A working example of jQuery UI Datepicker, you supply the image file

  • Download Gist
datepicker.html
HTML
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
<html>
<head>
<link rel="stylesheet" type="text/css" media="screen"
href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.1/themes/ui-lightness/jquery-ui.css" />
</head>
<body>
<p>Date: <input id=fromdt type=text></p>
<div style="display: none" class=demo-description></div>
<p>Date: <input id=todate type=text></p>
<div style="display: none" class=demo-description></div>
 
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
 
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js"></script>
 
<script>
$(function() {$( "#fromdt" ).datepicker({ buttonImage: 'images/calendar-small.png', buttonImageOnly: true, showOn: 'button' });});
$(function() {$( "#todate" ).datepicker({ buttonImage: 'images/calendar-small.png', buttonImageOnly: true, showOn: 'button' });});
</script>
</body>
</html>

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.