How can I add date and time picker in my content editable using jquery.
This is my <td>
:
<td class='datepicker' class="dq1" data-id1="'.$row["id"].'" contenteditable>'.$row["dq1"].'</td>
This is my script:
$(".datepicker").datepicker({
dateFormat: 'yyyy-mm-dd',
showOn: "button",
buttonImage: "images/calendar.gif",
buttonImageOnly: true,
onClose: function(dateText, inst) {
$(this).parent().find("[contenteditable=true]").focus().html(dateText).blur();
}
});