I have some form fields in a modal. The modal is activated when clicking a button.
After filling out the form and continuing to the next tab, I closed the modal. When I reopen the modal, the fields still show the previously entered data.
How can I reset these fields upon re-opening of the modal?