I hope this will be a small piece code that runs like charm.
Lets make an HTML form input and then program the style sheet and JS.
- HTML Form Input Textbox
<input type="text" id="dpMonthYear" value="" style="width:80px;" /><img alt="Month/Year Picker" onclick="showCalendarControl('dpMonthYear');" src="cal.gif" />
2. Hook the Stylesheet
<link rel="stylesheet" href="css/StyleCalender.css">
<script src="js/CalendarControl.js" > </script>
That’s it. Here you can change the ID of input from
dpMonthYear Textbox. And also you have to change it within the
showCalendarControl. You can demo it on the page
You can demo it and also you can get the downloadable source to use it. If you have issues or problem in its implementation, just drop your comments on the next tab with enough details.So I can check and help you on it.