Answers for "how to give link to input type submit"

0

a href type submit

<!-- just add javascript event inside <a></a> tag -->

<form action="/logout" method="POST" id="formLogout">
	<a onclick="document.getElementById('formLogout').submit();">Sign Out</a>
</form>
Posted by: Guest on August-17-2021

Browse Popular Code Answers by Language