I use Jeditable to allow editing of a table on my page. It updates a MySQL table and it all works fine.
I would like to add the ability to edit a datetime value as well. So I tried using jquery.jeditable.datepicker.js to do the job. But it works only with date values not datetime values.
$('.editTimeIn').editable('save.php', {
type : 'datepicker',
datepicker: {
dateFormat: 'yy-mm-dd',
numberOfMonths: 2
}
});
I need to be able to give the user the ability to pick the date and time. What recommendations do you have for this functionality? If possible please use examples.
From jeditable documentation.
So if you take a closer look in
jeditable additional input typesyou will see that you could useor
A simple example of
timeinput type can be found in this fiddleEDIT
You could also try to extend additional input types by adding
datetime-localinput type such as below (just a simple demo)Please check the updated fiddle also to view the changes