How do I implement this code on the page?

This page, http://plugins.cordova.io/#/package/com.plugin.datepicker, gave the following code:

var options = {
  date: new Date(),
  mode: 'date'
};

datePicker.show(options, function(date){
  alert("date result " + date);  
});

However, what do I put in the body to implement this code?

There’s an implementation demo available for you to experiment with over at https://github.com/DURK/cordova-datepicker-plugin-test-project

Thanks, but that’s using Jquery. Too much excess baggage to include for a popup.

You may notice that his plugin uses absolutely no jQuery at all. What does use jquery, is the datepicker part of the demo.

Moving away from jquery though, further details on implementation can be found at https://github.com/native5/cordova-android-plugins/tree/master/datepicker

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.