37
rated 0 times
[
44]
[
7]
/ answers: 1 / hits: 18278
/ 11 Years ago, fri, july 12, 2013, 12:00:00
Hi I saw a tutorial about creating a datepicker using an image. Ive copied and pasted the exact codes (except for the image path) but the calendar image does not show., can anyone help me please .. :D
here is the code
<HTML>
<HEAD>
<style type=text/css>
body
{
font-size: 10pt;
}
</style>
<script type=text/javascript>
$(document).ready(function() {
$(#txtDate).datepicker({
showOn: 'button',
buttonText: 'Show Date',
buttonImageOnly: true,
buttonImage: 'calendar.jpg',
dateFormat: 'dd/mm/yy',
constrainInput: true
});
$(.ui-datepicker-trigger).mouseover(function() {
$(this).css('cursor', 'pointer');
});
});
</script>
</HEAD>
<BODY>
<input type='text' id='txtDate' />
</BODY>
</HTML>
More From » javascript