27 January 2020

How to submit form with anchor tag (link) in jquery?

 Submit form with anchor tag (a and link) in jquery


<form method="get" action="">
<input type="hidden" name="ID" value="<?php echo $dealid;?>">
<input type="hidden" name="con" value="construction-contract">
<a href="" onclick="this.closest('form').submit();return false;" value="CONSTRUCTION CONTRACT" class="contract-button">CONSTRUCTION CONTRACT</a>
</form>

No comments:

Post a Comment

How to add re-captcha v3 on all Elementor forms using coding?

 Add re-captcha v3 on all Elementor forms using coding add_action('wp_footer',function(){     ?> <script src="https://www...