Dear All,
I have found a javascript for datepicker at this site http://javascriptcalendar.org/javascript-date-picker.php. My only problem now I dont want the datepicker to appear when I click in the input box but beside that I want to have a small calendar image and upon clicking only I want the the pop-up to appear. What must I modify to make it work? Thank you.
</body>
function pickDate()
{
gDate =new JsDatePick{
useMode:2,
target:“inputField”,
dateFormat:“%d-%M-%Y”
/selectedDate:{ This is an example of what the full configuration offers.
day:5, For full documentation about these settings please see the full version of the code.
month:9,
year:2006
},
yearsRange:[1978,2020],
limitToToday:false,
cellColorScheme:“beige”,
dateFormat:“%m-%d-%Y”,
imgPath:“img/”,
weekStartDay:1/
};
};
Dear Kalon,
Below is my codes. The problem now the image is not appearing one thing secondly I get this error missing ; before statement gDate =new JsDatePick{
<script type=“text/javascript”>
function pickDate()
{
gDate =new JsDatePick{
useMode:2,
target:“inputField”,
dateFormat:“%d-%M-%Y”
/selectedDate:{ This is an example of what the full configuration offers.
day:5, For full documentation about these settings please see the full version of the code.
month:9,
year:2006
},
yearsRange:[1978,2020],
limitToToday:false,
cellColorScheme:“beige”,
dateFormat:“%m-%d-%Y”,
imgPath:“img/”,
weekStartDay:1/
};
};
</script>
</head>
<body>