2017-05-03 10 views
-3

の値を設定することはできません私は、これは代わりにinnerHTMLプロパティの私のコードが入力

document.getElementById("time_Out").defaultValue = document.getElementById("DateOut"+id).innerHTML; 
+1

これは、PHPではないと私はjqueryのを見ていません。タグを正しく追加する – Dwhitz

答えて

0

利用のgetValueあるinput type="datetime-local"の値を設定することができませんでした、インナーは書くことで、私はあなたが

を読みたいと思います
document.getElementById("time_Out").defaultValue = document.getElementById("DateOut"+id).getValue(); 

otherwhiseあなたはDateOutにTIME_OUTの値を設定する場合:

cument.getElementById("DateOut"+id).innerHTML(document.getElementById("time_Out").getValue());