Click here to Skip to main content
15,894,825 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
i tried to implement jquery date picker in my master content pagebut the picker was not working any one can please suggest the solution.
<style>
.ui-datepicker {
background: #333;
border: 1px solid #555;
color: #EEE;
}

.ui-datepicker-calendar a.ui-state-default { background: cyan; }
.ui-datepicker-calendar td.ui-datepicker-today a { background: red; }
.ui-datepicker-calendar a.ui-state-hover { background: yellow; }
.ui-datepicker-calendar a.ui-state-active { background: lime; }
</style></style>
<script src="jquery-1.7.js" type="text/javascript"></script>
<script src="datetimepicker_css.js" type="text/javascript"></script>
<script src="jquery-ui.js" type="text/javascript"></script>
<script type="text/javascript">

$(function () {
$("input[id$=fname]").datepicker({

showOn: 'button',
buttonText: 'Show Date',
buttonImageOnly: true,
buttonImage: 'cal.gif',
dateFormat: 'dd/mm/yy',
constrainInput: true
});
$(".ui-datepicker-trigger").mouseover(function () {
$(this).css('cursor', 'pointer');
});

});

</script>
content page
XML
<input type="text" id="fname" style="background-color: #0099FF"><br>
<input type="image" src="Image/cal.gif" alt="Submit">
Posted
Comments
Richard C Bishop 26-Mar-14 15:22pm    
Getting any errors?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900