best_in_place
best_in_place copied to clipboard
Add possibility to use `type="date"` from HTML 5
I'd like to use input type="date"
from HTML 5 instead of jQuery UI Datepicker, and fallback to jQuery UI Datepicker, like so:
$(document).on('turbolinks:load', function() {
if ($('[type="date"]').prop('type') != 'date') {
$('[type="date"]').datepicker();
}
});