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