<script>var options = {
date: new Date(),
mode: 'date'
};
datePicker.show(options, function(date){
alert("date result " + date);
});</script>
It is obviously incomplete. What do I put in the body to invoke this code?
datePicker.show should make it appear on the screen<html>
<head>
<meta http-equiv=content-type content="text/html; charset=utf8">
<meta name="viewport" content="width=device-width" />
</head>
<body>
<h1>Hi <span id="hello"></span></h1>
</body>
<script>
document.getElementById("hello").innerHTML = "Steve Husting";
</script>
</html>
I have used this in the past, helps me a lot.