I'm trying to get the value of an input field in my .php document, and with this, set another input field, by triggering an OnClick event.
This is my current code
echo" <label onClick=\" document.getElementById(\"hiddenDescriptionField\").value = 'document.getElementById(\"descriptionField\").value'; ";
How can I set my hiddenDescriptionField from descriptionField using javascript?
?>and do this in regular html