Html – use form id as variable in javascript
My form has an ID: <form id="formname"> I wish to use this as a variable in JavaScript. function onSubmit(token) { document.getElementById("Formname").submit(); } I have to create a new script for every form with its specific ID in it. Is there…