How to submit a form with JavaScript by clicking an a href link

1 Answer

0 votes
<form id="form_id" action="index.php" method="post">
     <a href="javascript:void(0)" onclick="document.getElementById('form_id').submit();">Submit</a>
</form>

 



answered Dec 26, 2018 by avibootz
...