![](/img/trans.png)
[英]I am trying to create a dynamic table. i want to get the number of rows equal to the number that user enters in the box
[英]Want to edit the input date and time inside the table. But if I am typing the 1st number it suddenly get triggered
想要在表格內編輯輸入日期和時間。 但是,如果Iam輸入第一個數字,則會突然被觸發。 輸入日期和時間后,值應觸發。
該值將在表內。 我需要在表中編輯值。 例如:
function myFunction() { var x = document.getElementById("myInput").value; document.getElementById("demo").innerHTML = "You wrote: " + x; }
<input type="datetime-local" id="myInput" oninput="myFunction()"> <p id="demo"> </p>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.