diff --git a/datetimepicker.jquery.json b/datetimepicker.jquery.json index e8d5ac8..05757d2 100644 --- a/datetimepicker.jquery.json +++ b/datetimepicker.jquery.json @@ -11,7 +11,7 @@ "timepicker", "datetimepicker" ], - "version": "1.0.10", + "version": "1.1.0", "author": { "name": "Chupurnov Valeriy", "url": "http://xdsoft.net/contacts.html" diff --git a/doc.tpl b/doc.tpl index cca501f..3225f71 100644 --- a/doc.tpl +++ b/doc.tpl @@ -7,6 +7,8 @@ Use this plugin to unobtrusively add a datetimepicker, datepicker or timepicker parse('adsense5')?>

DateTimepicker


+

Use mask DateTimepicker

+

TimePicker


DatePicker

@@ -15,6 +17,9 @@ Use this plugin to unobtrusively add a datetimepicker, datepicker or timepicker
+

Use mask input Example

+

JavaScript

+
$('#datetimepicker_mask').datetimepicker({
+ timepicker:false,
+ mask:true, // '9999/19/39 29:59' - digit is the maximum possible for a cell
+});
+

Result

+

+

Full options list

@@ -340,6 +361,17 @@ $('#_datetimepicker7').datetimepicker({ '21:00' ]} + + + + + + diff --git a/index.html b/index.html index c34789e..f3930eb 100644 --- a/index.html +++ b/index.html @@ -7,6 +7,8 @@

Homepage

DateTimePicker



+

Mask DateTimePicker

+

TimePicker



DatePicker

@@ -23,6 +25,9 @@
maskfalseUse mask for input. true - automatically generates a mask on the field 'format', Digit from 0 to 9, set the highest possible digit for the value. For example: the first digit of hours can not be greater than 2, and the first digit of the minutes can not be greater than 5

+				{mask:'9999/19/39',format:'Y/m/d'}
+				{mask:true,format:'Y/m/d'} // automatically generate a mask 9999/99/99
+				{mask:'29:59',format:'H:i'} //
+				{mask:true,format:'H:i'} //automatically generate a mask 99:99
+			
opened false