UNPKG

anypicker

Version:

AnyPicker is a customizable jQuery Picker Library for Mobile OS. Create custom mobile pickers (Date, Time, Rating etc) for iOS, Android & Windows. Use pre-built pickers like Date Picker, Time Picker, Date Time Picker, etc

93 lines (59 loc) 1.77 kB
<!DOCTYPE html> <html> <head> <title>Date Picker - AnyPicker</title> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta name="msapplication-tap-highlight" content="no" /> <style type="text/css"> body { margin: 0px; } .input-cont { width: 300px; padding: 20px; } input { width: 200px; height: 30px; padding: 3px 10px; margin-bottom: 16px; } </style> <link rel="stylesheet" type="text/css" href="../src/anypicker-font.css" /> <link rel="stylesheet" type="text/css" href="../src/anypicker.css" /> <link rel="stylesheet" type="text/css" href="../src/anypicker-ios.css" /> <link rel="stylesheet" type="text/css" href="../src/anypicker-android.css" /> <link rel="stylesheet" type="text/css" href="../src/anypicker-windows.css" /> <script type="text/javascript" src="vendors/jquery-1.11.1.min.js"></script> <script type="text/javascript" src="../src/anypicker.js"></script> <script type="text/javascript"> $(document).ready(function() { $("#ip-de").AnyPicker( { mode: "datetime", dateTimeFormat: "yyyy-MM-dd", minValue: new Date(1920, 01, 19), maxValue: new Date(2017, 01, 19) // minValue: new Date(2016, 02, 06), // maxValue: new Date(2017, 01, 31) }); }); </script> </head> <body> <table class="input-cont"> <tr> <td>Date : (Default) </td> </tr> <tr> <td> <input type="text" id="ip-de" readonly> </td> </tr> </table> </body> </html>