I am assigning the value of the date and time to a text field using javascript, however instead of being a static value in the field, I would like the time to be constantly updated (for a query topic in the database) How could I do that?
I am currently showing the date and time of this form
var today = moment().format('YYYY-MM-DD HH:mm:ss');
document.getElementById("fecha_registro").value = today;