I want to put a value in a text box.
function open_popup(date_today){
document.getElementById('txtstart').value = date_today;
}
and a html input
<input type=text required name='txtstart' style='width:150px' value=''>
The text box is in a div that is hidden, and is seen when the open_popup () function is executed. I do not know why this does not work.