Use javascript to send the value data of input to the value of input text in the confirmation dialog box. The value is not displayed.

problem description

use javascript to send the value data of input to the value of input text in the confirmation dialog box. The value does not display

the environmental background of the problems and what methods you have tried



value textbox value


but the value in the code of the developer tool of the browser is empty

related codes

/ / Please paste the code text below (do not replace the code with pictures)

/ / definition of input for which the user selects a date value
var _ startday = doucment.getElementById ("startday_value"). Value;
var _ endday = document.getElementById ("endday_value"). Value;

/ / definition of input text that accepts data
var _ startday_value = doucment.getElementById ("startday_value");
var _ endday_value = document.getElementById ("endday_value");

/ / data send
_ startday_value.value = _ startday;
_ endday_value.value = _ endday;

Jun.03,2022
The value displayed on the
tag must be set with setAttribute, and it can only be a string;
dom.setAttribute ("value", "12313")

Menu