wip resolving date format pbm, already figured out where it comes from and how to create a new one
This commit is contained in:
12
plugins/fbpatch/js/dates.js
Normal file
12
plugins/fbpatch/js/dates.js
Normal file
@@ -0,0 +1,12 @@
|
||||
let datepicker_wrapper = document.querySelector(".datepicker-wrapper");
|
||||
console.log("datepicker-wrapper: ", datepicker_wrapper);
|
||||
|
||||
let mydate = document.createElement("input");
|
||||
mydate.setAttribute('type', 'text');
|
||||
mydate.setAttribute('style', 'margin-top:10px;');
|
||||
datepicker_wrapper.appendChild(mydate);
|
||||
|
||||
console.log("mydate: ", mydate);
|
||||
mydate.value = "oups";
|
||||
|
||||
$(mydate).datepicker({dateFormat: "yymmdd",});
|
||||
Reference in New Issue
Block a user