Answers for "onclick div send data using form"

0

onclick div send data using form

<form id="form-id" method="post" action="your-php-file-url">
<input type="hidden" name="your-variable-name" value="your-variable-value">
<div onclick="document.getElementById('form-id').submit();">Click Me</div>
</form>
Posted by: Guest on May-11-2021

Code answers related to "onclick div send data using form"

Browse Popular Code Answers by Language