Automatic Date Completion
November 21, 2007 - 8:33pm — ramvi
For use in an <input type="text" /> field. It lets the user only type in 10 and the input will be transformed into 2007-12-10.
Only typing a number will get the month and year. It presumes it's in the future, so if you type 10 on the eleventh of November, it will return December (2007-12-10 that is).
Works great with the jQuery UI Datepicker
One way of use
$("input").blur(function () {
var value = $(this).val();
$(this).dateCompletion(value);
}
});Releases
| Official releases | Date | Size | Links | Status | |
|---|---|---|---|---|---|
| 0.9.1 | 2007-Nov-29 | 2.64 KB | Recommended for 1.2.x | ||